Skip to content

Commit a4090df

Browse files
committed
Suppressing warnings in yosys-slang and yosys
1 parent ff0795c commit a4090df

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

libs/EXTERNAL/CMakeLists.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include(ExternalProject)
22
include(ProcessorCount)
33

4+
find_package(Git REQUIRED)
5+
46
#Manually synchronized external libraries
57
add_subdirectory(libpugixml)
68

@@ -59,11 +61,11 @@ if (${WITH_PARMYS})
5961

6062
#Initialize yosys submodules
6163
execute_process(
62-
COMMAND git submodule update --init
64+
COMMAND ${GIT_EXECUTABLE} submodule update --init
6365
WORKING_DIRECTORY ${YOSYS_SRC_DIR}
6466
)
6567
execute_process(
66-
COMMAND ${GIT_EXECUTABLE} submodule foreach --recursive git\ submodule\ update\ --init
68+
COMMAND ${GIT_EXECUTABLE} submodule foreach --recursive ${GIT_EXECUTABLE}\ submodule\ update\ --init
6769
WORKING_DIRECTORY ${YOSYS_SRC_DIR}
6870
)
6971

@@ -72,13 +74,13 @@ if (${WITH_PARMYS})
7274
COMMAND ${MAKE_PROGRAM} -C ${YOSYS_SRC_DIR}
7375
ENABLE_ABC=0
7476
PREFIX=${CMAKE_BINARY_DIR}
75-
77+
> /dev/null 2>&1
7678
COMMAND ${MAKE_PROGRAM}
7779
-C ${YOSYS_SRC_DIR}
7880
install
7981
ENABLE_ABC=0
8082
PREFIX=${CMAKE_BINARY_DIR}
81-
83+
> /dev/null 2>&1
8284
WORKING_DIRECTORY ${YOSYS_SRC_DIR})
8385

8486
add_custom_target(yosys ALL DEPENDS ${YOSYS_BUILD_DIR})
@@ -89,11 +91,11 @@ if (${WITH_PARMYS})
8991
set(YOSYS_CONFIG_EXECUTABLE ${CMAKE_BINARY_DIR}/bin/yosys-config CACHE STRING "Path to the yosys-config helper" FORCE)
9092
#Initialize yosys-slang submodules
9193
execute_process(
92-
COMMAND git submodule update --init
94+
COMMAND ${GIT_EXECUTABLE} submodule update --init
9395
WORKING_DIRECTORY ${SLANG_SRC_DIR}
9496
)
9597
execute_process(
96-
COMMAND ${GIT_EXECUTABLE} submodule foreach --recursive git\ submodule\ update\ --init
98+
COMMAND ${GIT_EXECUTABLE} submodule foreach --recursive ${GIT_EXECUTABLE}\ submodule\ update\ --init
9799
WORKING_DIRECTORY ${SLANG_SRC_DIR}
98100
)
99101
set(SLANG_FE "${SLANG_SRC_DIR}/src/slang_frontend.cc")
@@ -116,6 +118,9 @@ if (${WITH_PARMYS})
116118
BUILD_COMMAND ${CMAKE_COMMAND} --build ${SLANG_BUILD_DIR} -- -j${PROCESSOR_COUNT}
117119
INSTALL_COMMAND ${CMAKE_COMMAND} --install ${SLANG_BUILD_DIR}
118120
DEPENDS yosys
121+
122+
#Suppress warnings in the yosys-slang build
123+
LOG_BUILD OFF
119124
)
120125
endif ()
121126
endif ()

0 commit comments

Comments
 (0)