Skip to content

Commit 42c7d0e

Browse files
committed
Further attempting to suppress build warnings for yosys-slang
1 parent d447f4a commit 42c7d0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/EXTERNAL/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ if (${WITH_PARMYS})
9999
WORKING_DIRECTORY ${SLANG_SRC_DIR}
100100
)
101101
set(SLANG_FE "${SLANG_SRC_DIR}/src/slang_frontend.cc")
102+
CHECK_CXX_COMPILER_FLAG("-w" CXX_COMPILER_SUPPORTS_-w)
103+
if (CXX_COMPILER_SUPPORTS_-w)
104+
add_compile_options("-w")
105+
endif ()
102106
ExternalProject_Add(
103107
yosys-slang
104108
SOURCE_DIR ${SLANG_SRC_DIR}

0 commit comments

Comments
 (0)