Commit Graph
5 Commits
Author SHA1 Message Date
Tobias Hieta e18cb61c00 Enable -fvisibility-inline=hidden when supported.
This makes the binaries smaller and quicker to link.
2016-05-28 13:36:59 +02:00
Tobias Hieta 4bc5a76b94 Better fix for 9e4f99e1b4
This sets the CMAKE_EXE_LINKER_FLAGS_<BUILD_TYPE> instead of setting
CMAKE_EXE_LINKER_FLAGS based on what the current BUILD_TYPE is. With
multi-configuration IDEs the former breaks.
2016-05-28 13:31:20 +02:00
longchair 9e4f99e1b4 Disable -flto when making a debug build 2016-05-28 11:49:05 +02:00
Tobias Hieta 2825f1acd9 Enable -Wshorten-64-to-32 on Clang and GCC and fix warnings in our code
Also disable this warning for external libs like qhttp and HIDRemote
since we don't control them and don't want to maintain fixes just for
warnings.
2016-04-12 12:01:36 +02:00
Tobias Hieta fbb795dd46 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.
2016-04-01 16:31:23 +02:00