[test-suite] r266762 - Implement Matthias' feedback for TEST_SUITE_DIAGNOSE flags
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 10:07:22 PDT 2016
Author: cmatthews
Date: Tue Apr 19 12:07:22 2016
New Revision: 266762
URL: http://llvm.org/viewvc/llvm-project?rev=266762&view=rev
Log:
Implement Matthias' feedback for TEST_SUITE_DIAGNOSE flags
Modified:
test-suite/trunk/CMakeLists.txt
Modified: test-suite/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/CMakeLists.txt?rev=266762&r1=266761&r2=266762&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Tue Apr 19 12:07:22 2016
@@ -101,10 +101,12 @@ set(TEST_SUITE_PROFILE_USE "FALSE" CACHE
# When running the test-suite in diagnosis mode, use these flags passed by
# LNT to gather data, for examples -ftime-report, or -mllvm -stats.
-if(TEST_SUITE_DIAGNOSE)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_SUITE_DIAGNOSE_FLAGS}")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TEST_SUITE_DIAGNOSE_FLAGS}")
-endif()
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_SUITE_DIAGNOSE_FLAGS}" CACHE STRING
+ "Extra CFLAGS for external tools like LNT.")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TEST_SUITE_DIAGNOSE_FLAGS}" CACHE STRING
+ "Extra CXXFLAGS for external tools like LNT.")
+set(CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS} ${TEST_SUITE_DIAGNOSE_FLAGS}" CACHE STRING
+ "Extra LDFLAGS for external tools like LNT.")
include(MakefileFunctions)
include(SingleMultiSource)
More information about the llvm-commits
mailing list