Skip to content

[Yosys][Warnings] Fixed Make Being Called With Multiple Threads #2530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions yosys/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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})
#install(FILES ${BINARY_LIB_FILE1} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
Loading