[test-suite] r263188 - cmake: Make compile time measurements optional
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 10 18:42:27 PST 2016
Author: matze
Date: Thu Mar 10 20:42:27 2016
New Revision: 263188
URL: http://llvm.org/viewvc/llvm-project?rev=263188&view=rev
Log:
cmake: Make compile time measurements optional
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=263188&r1=263187&r2=263188&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Thu Mar 10 20:42:27 2016
@@ -124,9 +124,13 @@ add_subdirectory(tools)
# Shortcut for the path to the fpcmp executable
set(FPCMP ${CMAKE_BINARY_DIR}/tools/fpcmp)
-# Now that the tools have been created, use tools/timeit to time all other compilations.
-set(CMAKE_C_COMPILE_OBJECT "${CMAKE_BINARY_DIR}/tools/timeit --summary <OBJECT>.time ${CMAKE_C_COMPILE_OBJECT}")
-set(CMAKE_CXX_COMPILE_OBJECT "${CMAKE_BINARY_DIR}/tools/timeit --summary <OBJECT>.time ${CMAKE_CXX_COMPILE_OBJECT}")
+set(TEST_SUITE_TAKE_COMPILE_TIME "TRUE" CACHE BOOL
+ "Measure compile time by wrapping compiler invocations in timeit")
+mark_as_advanced(TEST_SUITE_TAKE_COMPILE_TIME)
+if(TEST_SUITE_TAKE_COMPILE_TIME)
+ set(CMAKE_C_COMPILE_OBJECT "${CMAKE_BINARY_DIR}/tools/timeit --summary <OBJECT>.time ${CMAKE_C_COMPILE_OBJECT}")
+ set(CMAKE_CXX_COMPILE_OBJECT "${CMAKE_BINARY_DIR}/tools/timeit --summary <OBJECT>.time ${CMAKE_CXX_COMPILE_OBJECT}")
+endif()
set(TEST_SUITE_BENCHMARKING_ONLY "OFF" CACHE BOOL
"Only run the benchmarking only subset")
More information about the llvm-commits
mailing list