diff options
author | Andrew Morrow <acm@mongodb.com> | 2018-08-24 12:14:39 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2018-08-24 16:51:51 -0400 |
commit | b29f95c9b5cefb2c4ee4beaf5b1eb5758bfb910b (patch) | |
tree | 08b7392067285c154c2884f783461302713786fa /etc/scons | |
parent | 08368fb434fd4346f1a37315b79eb8f46c505f10 (diff) | |
download | mongo-b29f95c9b5cefb2c4ee4beaf5b1eb5758bfb910b.tar.gz |
SERVER-35184 Enable LTO for embedded SDK builds
Includes a bump in the SDK manager toolset, and moves us to the
Android r18 beta2 toolset, because LTO is broken in r17.
See https://github.com/android-ndk/ndk/issues/498 for details.
Diffstat (limited to 'etc/scons')
-rw-r--r-- | etc/scons/android_toolchain.vars | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/scons/android_toolchain.vars b/etc/scons/android_toolchain.vars index 973e4e36468..e1d564693ff 100644 --- a/etc/scons/android_toolchain.vars +++ b/etc/scons/android_toolchain.vars @@ -19,7 +19,7 @@ CC=os.path.join(toolchain_path, "bin", "clang" + compiler_suffix) CXX=os.path.join(toolchain_path, "bin", "clang++" + compiler_suffix) AR=subprocess.check_output([CXX, '-print-prog-name=ar']).strip() -LINKFLAGS='-static-libstdc++' +LINKFLAGS='-static-libstdc++ -fuse-ld=gold' CPPDEFINES='__ANDROID_API__=21 _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR' TARGET_OS="android" |