Enable -fvisibility-inline=hidden when supported.

This makes the binaries smaller and quicker to link.
This commit is contained in:
Tobias Hieta 2016-05-28 13:36:59 +02:00
parent 4bc5a76b94
commit e18cb61c00

View File

@ -7,6 +7,7 @@ enable_if_supported(COMPILER_FLAGS "-Wshorten-64-to-32")
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_supported(COMPILER_FLAGS "-fvisibility-inlines-hidden")
# Flags only for external libs
enable_if_supported(COMPILER_FLAGS_THIRD_PARTY "-Wno-shorten-64-to-32")