[test-suite] r295275 - cmake/caches: Add some caches with descriptive names

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 18:48:16 PST 2017


Author: matze
Date: Wed Feb 15 20:48:15 2017
New Revision: 295275

URL: http://llvm.org/viewvc/llvm-project?rev=295275&view=rev
Log:
cmake/caches: Add some caches with descriptive names

Having the name describe the content makes it more obvious what is going
when seeing logs.

Added:
    test-suite/trunk/cmake/caches/O0-g.cmake
    test-suite/trunk/cmake/caches/Os.cmake
    test-suite/trunk/cmake/caches/Oz.cmake

Added: test-suite/trunk/cmake/caches/O0-g.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/O0-g.cmake?rev=295275&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/O0-g.cmake (added)
+++ test-suite/trunk/cmake/caches/O0-g.cmake Wed Feb 15 20:48:15 2017
@@ -0,0 +1,5 @@
+# Lowest optimization level and maximum debug information; A typical developer
+# configuration.
+set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "")
+set(CMAKE_C_FLAGS_DEBUG "-O0 -g" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g" CACHE STRING "")

Added: test-suite/trunk/cmake/caches/Os.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Os.cmake?rev=295275&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/Os.cmake (added)
+++ test-suite/trunk/cmake/caches/Os.cmake Wed Feb 15 20:48:15 2017
@@ -0,0 +1,5 @@
+# Use -Os, don't increase code size.
+
+set(CMAKE_C_FLAGS_RELEASE "-Os" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "-Os" CACHE STRING "")
+set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")

Added: test-suite/trunk/cmake/caches/Oz.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Oz.cmake?rev=295275&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/Oz.cmake (added)
+++ test-suite/trunk/cmake/caches/Oz.cmake Wed Feb 15 20:48:15 2017
@@ -0,0 +1,5 @@
+# Minimize code size using -Oz.
+
+set(CMAKE_C_FLAGS_RELEASE "-Oz" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "-Oz" CACHE STRING "")
+set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")




More information about the llvm-commits mailing list