mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
OS X compilation fixed
This commit is contained in:
parent
3c5d7468d7
commit
9f1ffe0473
@ -69,7 +69,11 @@ else()
|
|||||||
else()
|
else()
|
||||||
set(DEBUG_FLAGS "-g3 -O0")
|
set(DEBUG_FLAGS "-g3 -O0")
|
||||||
endif()
|
endif()
|
||||||
set(RELEASE_FLAGS "-Ofast -DNDEBUG -Wno-unused-variable -flto")
|
set(RELEASE_FLAGS "-Ofast -DNDEBUG -Wno-unused-variable")
|
||||||
|
if(NOT APPLE)
|
||||||
|
# There is a clang bug that does not allow to compile code that uses AES-NI intrinsics if -flto is enabled
|
||||||
|
set(RELEASE_FLAGS "${RELEASE_FLAGS} -flto")
|
||||||
|
endif()
|
||||||
#if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT MINGW)
|
#if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT MINGW)
|
||||||
# set(RELEASE_FLAGS "${RELEASE_FLAGS} -fno-fat-lto-objects")
|
# set(RELEASE_FLAGS "${RELEASE_FLAGS} -fno-fat-lto-objects")
|
||||||
#endif()
|
#endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user