Swtiched to "gold" linker on linux.
Provided more aggressive optimization flags on Linux.
This commit is contained in:
committed by
alexander-gorshenev
parent
dbc1cb1919
commit
2515d1fdaa
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user