We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e565feb commit 3d1d8baCopy full SHA for 3d1d8ba
cmake/caches/ReleaseLTO.cmake
@@ -0,0 +1,9 @@
1
+# Aggressive settings to produce fast code.
2
+set(OPTFLAGS "${OPTFLAGS} -O3 -fomit-frame-pointer -flto -DNDEBUG")
3
+if(APPLE)
4
+ set(OPTFLAGS "${OPTFLAGS} -mdynamic-no-pic")
5
+endif()
6
+
7
+set(CMAKE_C_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
8
+set(CMAKE_CXX_FLAGS_RELEASE "${OPTFLAGS}" CACHE STRING "")
9
+set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
0 commit comments