From 4bbcda1a6467863ff6585b09f2b289198a8637dc Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sun, 4 Nov 2018 19:22:17 +0100 Subject: fix: actually set -O0 in test/concrete/CMakeLists.txt `-O0` has to be used in conjunction with, not instead of `-Xclang -disable-O0-optnone` --- test/Concrete/CMakeLists.txt | 2 +- test/lit.site.cfg.in | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/Concrete/CMakeLists.txt b/test/Concrete/CMakeLists.txt index 7fad17b9..0f565bed 100644 --- a/test/Concrete/CMakeLists.txt +++ b/test/Concrete/CMakeLists.txt @@ -7,7 +7,7 @@ # #===------------------------------------------------------------------------===# if (${LLVM_VERSION_MAJOR} GREATER 4) - set(OZERO_OPT "-Xclang -disable-O0-optnone") + set(OZERO_OPT "-O0 -Xclang -disable-O0-optnone") else() set(OZERO_OPT "-O0") endif() diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 6bb0e297..5f3c777a 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -21,6 +21,8 @@ config.llvmgxx = "@LLVMCXX@" config.cc = "@NATIVE_CC@" config.cxx = "@NATIVE_CXX@" +# NOTE: any changes to compiler flags also have to be applied to +# test/Concrete/CMakeLists.txt config.O0opt = "-O0" if @LLVM_VERSION_MAJOR@ >= 5: config.O0opt += " -Xclang -disable-O0-optnone" -- cgit 1.4.1