-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume cflags test for them instead.
Instead of maintaining lists per compiler of flags that should be enabled / disabled we now test for them instead. If they are able to be used we append them. Same with linker flags we test for them before assuming they work.
- Loading branch information
Tobias Hieta
committed
Apr 1, 2016
1 parent
3c0661f
commit fbb795d
Showing
6 changed files
with
116 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# MSVC goes totally bananas if we pass it -Wall | ||
if(NOT MSVC) | ||
enable_if_supported(COMPILER_FLAGS "-Wall") | ||
endif() | ||
|
||
enable_if_supported(COMPILER_FLAGS "-fno-omit-frame-pointer") | ||
enable_if_supported(COMPILER_FLAGS "-mmacosx-version-min=10.9") | ||
enable_if_supported(COMPILER_FLAGS "/Oy-") | ||
|
||
enable_if_links(LINK_FLAGS "-flto") | ||
enable_if_links(LINK_FLAGS "-fuse-ld=gold") | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILER_FLAGS}") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILER_FLAGS}") | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LINK_FLAGS}") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters