[test-suite] r283513 - Make LTO the default in -Os builds
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 6 17:03:07 PDT 2016
Author: cmatthews
Date: Thu Oct 6 19:03:07 2016
New Revision: 283513
URL: http://llvm.org/viewvc/llvm-project?rev=283513&view=rev
Log:
Make LTO the default in -Os builds
Modified:
test-suite/trunk/cmake/caches/CodeSize.cmake
Modified: test-suite/trunk/cmake/caches/CodeSize.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/CodeSize.cmake?rev=283513&r1=283512&r2=283513&view=diff
==============================================================================
--- test-suite/trunk/cmake/caches/CodeSize.cmake (original)
+++ test-suite/trunk/cmake/caches/CodeSize.cmake Thu Oct 6 19:03:07 2016
@@ -1,5 +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_C_FLAGS_RELEASE "-Os -flto" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "-Os -flto" CACHE STRING "")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
More information about the llvm-commits
mailing list