Revert "Don't overwrite the existing flags when a GNU compiler is used."

This reverts commit 101104872a36f9cead85b880e3f838259e80b778.
This commit is contained in:
Username404-59 2021-03-01 12:03:25 +01:00
parent 2f09a44521
commit 82f65e5da5
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if((${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) OR (${CMAKE_CXX_COMPILER_ID} STREQUAL
endif()
if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc")
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fira-loop-pressure -ftree-loop-distribution -floop-interchange -ftree-vectorize -fipa-pta -s")
set(CMAKE_CXX_FLAGS "-flto -fno-use-linker-plugin -fwhole-program ${CMAKE_CXX_FLAGS}")
endif()