[test-suite] r311493 - cmake/caches: Add caches for Os and O3 with debug info.
Michael Zolotukhin via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 22 14:44:20 PDT 2017
Author: mzolotukhin
Date: Tue Aug 22 14:44:20 2017
New Revision: 311493
URL: http://llvm.org/viewvc/llvm-project?rev=311493&view=rev
Log:
cmake/caches: Add caches for Os and O3 with debug info.
Added:
test-suite/trunk/cmake/caches/Os-g.cmake
test-suite/trunk/cmake/caches/ReleaseLTO-g.cmake
Added: test-suite/trunk/cmake/caches/Os-g.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Os-g.cmake?rev=311493&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/Os-g.cmake (added)
+++ test-suite/trunk/cmake/caches/Os-g.cmake Tue Aug 22 14:44:20 2017
@@ -0,0 +1,6 @@
+# Use -Os, don't increase code size.
+set(OPTFLAGS "${OPTFLAGS} -Os -g")
+
+set(CMAKE_C_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
+set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
Added: test-suite/trunk/cmake/caches/ReleaseLTO-g.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/ReleaseLTO-g.cmake?rev=311493&view=auto
==============================================================================
--- test-suite/trunk/cmake/caches/ReleaseLTO-g.cmake (added)
+++ test-suite/trunk/cmake/caches/ReleaseLTO-g.cmake Tue Aug 22 14:44:20 2017
@@ -0,0 +1,9 @@
+# Aggressive settings to produce fast code.
+set(OPTFLAGS "${OPTFLAGS} -O3 -fomit-frame-pointer -flto -DNDEBUG -g")
+if(APPLE)
+ set(OPTFLAGS "${OPTFLAGS} -mdynamic-no-pic")
+endif()
+
+set(CMAKE_C_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
+set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
More information about the llvm-commits
mailing list