about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--test/Concrete/CMakeLists.txt2
-rw-r--r--test/lit.site.cfg.in2
2 files changed, 3 insertions, 1 deletions
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"