0
0
mirror of https://github.com/monero-project/kovri synced 2025-10-05 16:22:54 +02:00

Build: remove aggressive optimizations for clang

Clang release builds are too aggressive with -O3 optimizations, and
cause runtime errors.
This commit is contained in:
oneiric
2018-07-30 21:50:05 +00:00
parent 1b26e587fc
commit 589f1324f7

View File

@@ -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)