소스 검색

Enable -fvisibility-inline=hidden when supported.

This makes the binaries smaller and quicker to link.
Tobias Hieta 8 년 전
부모
커밋
e18cb61c00
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      CMakeModules/CompilerFlags.cmake

+ 1 - 0
CMakeModules/CompilerFlags.cmake

@@ -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")