0
0
mirror of https://github.com/monero-project/kovri synced 2025-10-06 00:32:51 +02:00

Merge pull request #999

589f1324 Build: remove aggressive optimizations for clang (oneiric)
This commit is contained in:
anonimal
2018-08-01 22:50:18 +00:00

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)