mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-09 02:21:01 +00:00
Merge pull request #5936 from YosysHQ/krys/parallel_make
Let nested make calls parallelize
This commit is contained in:
commit
948c3d6394
3 changed files with 10 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
|
|||
)
|
||||
endif()
|
||||
|
||||
cmake_minimum_required(VERSION 3.27)
|
||||
cmake_minimum_required(VERSION 3.28)
|
||||
project(yosys LANGUAGES C CXX)
|
||||
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||
|
|
@ -31,6 +31,10 @@ include(YosysAbcSubmodule)
|
|||
include(YosysVerific)
|
||||
include(UseHomebrew)
|
||||
|
||||
# Fix for using Clang from nixpkgs
|
||||
# see https://github.com/YosysHQ/yosys/pull/5936#issuecomment-4637319568
|
||||
set(CMAKE_CXX_SCAN_FOR_MODULES NO)
|
||||
|
||||
# Build options.
|
||||
set(YOSYS_COMPILER_LAUNCHER "" CACHE STRING "Compiler launcher (ccache, sccache)")
|
||||
option(YOSYS_ENABLE_COVERAGE "Enable code coverage" OFF)
|
||||
|
|
@ -532,6 +536,7 @@ if (NOT YOSYS_BUILD_PYTHON_ONLY)
|
|||
COMMAND make vanilla-test ${makefile_vars}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests
|
||||
DEPENDS ${makefile_depends}
|
||||
JOB_SERVER_AWARE TRUE
|
||||
)
|
||||
|
||||
add_custom_target(test
|
||||
|
|
@ -543,6 +548,7 @@ if (NOT YOSYS_BUILD_PYTHON_ONLY)
|
|||
COMMAND make gen ${makefile_vars}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs
|
||||
DEPENDS ${makefile_depends}
|
||||
JOB_SERVER_AWARE TRUE
|
||||
)
|
||||
foreach (format html latexpdf)
|
||||
add_custom_target(docs-${format}
|
||||
|
|
@ -555,6 +561,7 @@ if (NOT YOSYS_BUILD_PYTHON_ONLY)
|
|||
COMMAND make test ${makefile_vars}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs
|
||||
DEPENDS ${makefile_depends}
|
||||
JOB_SERVER_AWARE TRUE
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ or
|
|||
$ git submodule update --init --recursive
|
||||
|
||||
A C++ compiler with C++20 support is required as well as some standard tools
|
||||
such as GNU Flex, GNU Bison (>=3.8), CMake (>=3.27), Make (or other CMake
|
||||
such as GNU Flex, GNU Bison (>=3.8), CMake (>=3.28), Make (or other CMake
|
||||
generator such as Ninja), and Python (>=3.11). Some additional tools: readline,
|
||||
libffi, Tcl and zlib; will be used if available but are optional. Graphviz and
|
||||
Xdot are used by the `show` command to display schematics.
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ Build prerequisites
|
|||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
A C++ compiler with C++20 support is required as well as some standard tools
|
||||
such as GNU Flex, GNU Bison (>=3.8), CMake (>=3.27), Make (or other CMake
|
||||
such as GNU Flex, GNU Bison (>=3.8), CMake (>=3.28), Make (or other CMake
|
||||
generator such as Ninja), and Python (>=3.11). Some additional tools: readline,
|
||||
libffi, Tcl and zlib; will be used if available but are optional. Graphviz and
|
||||
Xdot are used by the `show` command to display schematics.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue