Skip to content

Commit 8835709

Browse files
committed
[clang/gcc] Use -O3 instead of -Ofast
1 parent 51b8139 commit 8835709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/compilation.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ endif()
3737

3838
if (NOT MSVC)
3939
# Clang/GCC
40-
set(REL_OPTS "-pipe -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -ffast-math -funroll-loops")
40+
set(REL_OPTS "-O3 -pipe -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -ffast-math -funroll-loops")
4141

4242
# GCC only
4343
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
4444
set(REL_OPTS "${REL_OPTS} -fno-implement-inlines")
4545

4646
# Clang only
4747
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
48-
set(REL_OPTS "${REL_OPTS} -Ofast")
48+
set(REL_OPTS "${REL_OPTS}")
4949

5050
if (EVERY_WARNING)
5151
# But ignore some warnings.

0 commit comments

Comments
 (0)