diff options
author | Julian Büning <julian.buening@rwth-aachen.de> | 2018-10-29 00:15:43 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-10-29 11:59:44 +0200 |
commit | 652c2bdc171a448a2d6082040eebec366946ad33 (patch) | |
tree | 1f49fdb4b9ec6b3c9aef060e609a6a2e289600ed /test/Concrete | |
parent | 581dca9276cacc690703cd4962e309661fc71c23 (diff) | |
download | klee-652c2bdc171a448a2d6082040eebec366946ad33.tar.gz |
add %OOopt to recently added tests and Concrete
Diffstat (limited to 'test/Concrete')
-rw-r--r-- | test/Concrete/CMakeLists.txt | 5 | ||||
-rw-r--r-- | test/Concrete/Makefile.cmake.test.in | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/Concrete/CMakeLists.txt b/test/Concrete/CMakeLists.txt index b3e4948f..7fad17b9 100644 --- a/test/Concrete/CMakeLists.txt +++ b/test/Concrete/CMakeLists.txt @@ -6,4 +6,9 @@ # License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# +if (${LLVM_VERSION_MAJOR} GREATER 4) + set(OZERO_OPT "-Xclang -disable-O0-optnone") +else() + set(OZERO_OPT "-O0") +endif() configure_file(Makefile.cmake.test.in Makefile.cmake.test @ONLY) diff --git a/test/Concrete/Makefile.cmake.test.in b/test/Concrete/Makefile.cmake.test.in index feb879de..2282bb08 100644 --- a/test/Concrete/Makefile.cmake.test.in +++ b/test/Concrete/Makefile.cmake.test.in @@ -13,7 +13,7 @@ LLVMCC := @LLVMCC@ LLVMAS := @LLVM_AS@ LLVMLINK := @LLVM_LINK@ -LLVMCC.CFlags := -O0 -Wall +LLVMCC.CFlags := @OZERO_OPT@ -Wall # Make sure source files can match the pattern rules VPATH := @CMAKE_CURRENT_SOURCE_DIR@ |