Swtiched to "gold" linker on linux.

Provided more aggressive optimization flags on Linux.
This commit is contained in:
Alexander Gorshenev
2016-12-22 14:58:37 +03:00
committed by alexander-gorshenev
parent dbc1cb1919
commit 2515d1fdaa
+1 -1
View File
@@ -80,7 +80,7 @@ class ClangFlags {
if (platform.isLinux()) {
linkCppAbi= ["-Wl,-Bstatic", "-lc++abi", "-Wl,-Bdynamic"]
linkPlatform= ["-ldl", "-lpthread", "-lm", "-rdynamic"]
optArgs = ["-O3"]
optArgs = ["-O3", "-fuse-ld=gold", "-flto", "-ffunction-sections", "-Wl,--gc-sections"]
} else if (platform.isMac()) {
// Life is hard. MacOS linker is harder.
// This is how we force the linker to link statically.