[test-suite] r263182 - Add cmake caches for common configurations

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 17:26:07 PST 2016


Author: cmatthews
Date: Thu Mar 10 19:26:06 2016
New Revision: 263182

URL: http://llvm.org/viewvc/llvm-project?rev=263182&view=rev
Log:
Add cmake caches for common configurations

There are some common configurations of the test-suite which really
should be encoded right into the test-suite so they can be easily used
and shared.

This commit adds new cmake caches to start to capture those configs.
Release is a production build where we enable -O3 and LTO.  Debug, is
what a developer might use on their desktop while working on code, with
the flags -O0 -g.

Watch for a matching LNT commit which adds support for using these.

Added:
    test-suite/trunk/cmake/caches/
    test-suite/trunk/cmake/caches/Debug.cmake
    test-suite/trunk/cmake/caches/Release.cmake

Added: test-suite/trunk/cmake/caches/Debug.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Debug.cmake?rev=263182&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/Debug.cmake (added)
+++ test-suite/trunk/cmake/caches/Debug.cmake Thu Mar 10 19:26:06 2016
@@ -0,0 +1,2 @@
+set(CMAKE_C_FLAGS "-O0 -g" CACHE STRING "")
+set(CMAKE_CXX_FLAGS "-O0 -g" CACHE STRING "")

Added: test-suite/trunk/cmake/caches/Release.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Release.cmake?rev=263182&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/Release.cmake (added)
+++ test-suite/trunk/cmake/caches/Release.cmake Thu Mar 10 19:26:06 2016
@@ -0,0 +1,2 @@
+set(CMAKE_C_FLAGS "-O3 -flto" CACHE STRING "")
+set(CMAKE_CXX_FLAGS "-O3 -flto" CACHE STRING "")




More information about the llvm-commits mailing list