[test-suite] r276206 - New cmake caches for -Os and -Oz
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 16:24:41 PDT 2016
Author: cmatthews
Date: Wed Jul 20 18:24:41 2016
New Revision: 276206
URL: http://llvm.org/viewvc/llvm-project?rev=276206&view=rev
Log:
New cmake caches for -Os and -Oz
Added:
test-suite/trunk/cmake/caches/CodeSize.cmake
test-suite/trunk/cmake/caches/MinSize.cmake
Added: test-suite/trunk/cmake/caches/CodeSize.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/CodeSize.cmake?rev=276206&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/CodeSize.cmake (added)
+++ test-suite/trunk/cmake/caches/CodeSize.cmake Wed Jul 20 18:24:41 2016
@@ -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/MinSize.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/MinSize.cmake?rev=276206&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/MinSize.cmake (added)
+++ test-suite/trunk/cmake/caches/MinSize.cmake Wed Jul 20 18:24:41 2016
@@ -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