Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #999
Browse files Browse the repository at this point in the history
589f132 Build: remove aggressive optimizations for clang (oneiric)
  • Loading branch information
anonimal committed Aug 1, 2018
2 parents 3cdb442 + 589f132 commit f81f517
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ endif()
# The issue is not reproducible with Debug build type. See #993.
# Absolutely resolve this hack when are out of out Alpha, or no later than Beta.
if (CLANG)
set(CMAKE_BUILD_TYPE Debug)
# Remove aggressive optimizations from release builds. Referencing #993
string(REPLACE "-O3" "-O1" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
endif()

# Require C++14 support (minimum version compilers guarantee this)
Expand Down

0 comments on commit f81f517

Please sign in to comment.