From 2515d1fdaacfb0e69f59c3e560492dd74a1f005f Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 22 Dec 2016 14:58:37 +0300 Subject: [PATCH] Swtiched to "gold" linker on linux. Provided more aggressive optimization flags on Linux. --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index edfc3c2ef5e..ec02dc6695f 100644 --- a/build.gradle +++ b/build.gradle @@ -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.