We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51b8139 commit 8835709Copy full SHA for 8835709
cmake/compilation.cmake
@@ -37,15 +37,15 @@ endif()
37
38
if (NOT MSVC)
39
# Clang/GCC
40
- set(REL_OPTS "-pipe -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -ffast-math -funroll-loops")
+ set(REL_OPTS "-O3 -pipe -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -ffast-math -funroll-loops")
41
42
# GCC only
43
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
44
set(REL_OPTS "${REL_OPTS} -fno-implement-inlines")
45
46
# Clang only
47
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
48
- set(REL_OPTS "${REL_OPTS} -Ofast")
+ set(REL_OPTS "${REL_OPTS}")
49
50
if (EVERY_WARNING)
51
# But ignore some warnings.
0 commit comments