Skip to content

Commit 44c015c

Browse files
committed
gnu-only no-volatile flags
1 parent 9ad28cb commit 44c015c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/souffle-compile.template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"release_cxx_flags": "-O3 ",
1616
"debug_cxx_flags": "-g",
1717
"definitions": "-DRAM_DOMAIN_SIZE=64 -DUSE_NCURSES -DUSE_LIBZ -DUSE_SQLITE",
18-
"compile_options": "-Wno-volatile",
18+
"compile_options": "",
1919
"link_options": "-pthread -ldl -lstdc++fs /usr/lib/x86_64-linux-gnu/libsqlite3.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libncurses.so",
2020
"rpaths": "/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu",
2121
"outname_fmt": "-o {}",

tests/interface/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function(SOUFFLE_RUN_CPP_TEST)
3636
endif()
3737

3838
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
39+
list(APPEND ADDITTIONNAL_FLAGS "-Wno-volatile")
3940
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
4041
list(APPEND ADDITIONNAL_FLAGS "-lstdc++fs")
4142
endif ()
@@ -61,7 +62,6 @@ function(SOUFFLE_RUN_CPP_TEST)
6162
${CMAKE_CXX20_STANDARD_COMPILE_OPTION}
6263
${OUT_OPTION}
6364
-D__EMBEDDED_SOUFFLE__
64-
-Wno-volatile
6565
"-I${CMAKE_SOURCE_DIR}/src/include"
6666
"${TEST_NAME}.cpp"
6767
"${PARAM_INPUT_DIR}/driver.cpp"

0 commit comments

Comments
 (0)