|
|
@ -226,14 +226,17 @@ if (STORM_COMPILER_CLANG OR STORM_COMPILER_APPLECLANG) |
|
|
|
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-export_dynamic") |
|
|
|
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-export_dynamic") |
|
|
|
elseif (STORM_COMPILER_GCC) |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") |
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto -fprefetch-loop-arrays -ffast-math -fno-finite-math-only") |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") |
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fprefetch-loop-arrays -ffast-math -fno-finite-math-only") |
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -rdynamic") |
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic") |
|
|
|
endif () |
|
|
|
|
|
|
|
if (STORM_USE_LTO) |
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto") |
|
|
|
message(STATUS "Storm - Enabling link-time optimizations.") |
|
|
|
else() |
|
|
|
message(STATUS "Storm - Disabling link-time optimizations.") |
|
|
|
endif() |
|
|
|
|
|
|
|
# In release mode, we turn on even more optimizations if we do not have to provide a portable binary. |
|
|
|