diff --git a/CMakeLists.txt b/CMakeLists.txt index c818811d8ff..3326eae4168 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -418,11 +418,13 @@ if(${WITH_PARMYS}) # define cmake params to compile Yosys set(MAKE_PROGRAM "make") endif() - if(NOT DEFINED "${CMAKE_BUILD_PARALLEL_LEVEL}") - set(CUSTOM_BUILD_PARALLEL_LEVEL 16) - else() - set(CUSTOM_BUILD_PARALLEL_LEVEL "${CMAKE_BUILD_PARALLEL_LEVEL}") - endif() + # Commented out since a make file should not call another make command with + # threads. It should pass this information from the parent automatically. + # if(NOT DEFINED "${CMAKE_BUILD_PARALLEL_LEVEL}") + # set(CUSTOM_BUILD_PARALLEL_LEVEL 16) + # else() + # set(CUSTOM_BUILD_PARALLEL_LEVEL "${CMAKE_BUILD_PARALLEL_LEVEL}") + # endif() add_subdirectory(yosys) endif() diff --git a/yosys/CMakeLists.txt b/yosys/CMakeLists.txt index dd13b7c49ae..455e575cc99 100644 --- a/yosys/CMakeLists.txt +++ b/yosys/CMakeLists.txt @@ -20,7 +20,7 @@ add_custom_command(OUTPUT yosys-bin # -C ${CMAKE_CURRENT_BINARY_DIR} # -f ${CMAKE_CURRENT_SOURCE_DIR}/Makefile #(out-of-tree) build directory PREFIX=${CMAKE_BINARY_DIR} - -j${CUSTOM_BUILD_PARALLEL_LEVEL} +# -j${CUSTOM_BUILD_PARALLEL_LEVEL} > /dev/null COMMAND ${MAKE_PROGRAM} install ENABLE_ABC=0 @@ -43,4 +43,4 @@ add_custom_target(yosys ALL DEPENDS yosys-bin) # INTERFACE_INCLUDE_DIRECTORIES ${YOSYS_INCLUDE_DIRS}) -#install(FILES ${BINARY_LIB_FILE1} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) \ No newline at end of file +#install(FILES ${BINARY_LIB_FILE1} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})