summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-11-24 17:55:21 -0800
committerNico Weber <thakis@chromium.org>2014-11-25 01:56:21 +0000
commitd4daea0deeeb80bfebf7a487410f77a48238c061 (patch)
tree45d8a6972f3cd35df68204e2777455bf4dd668c6 /build
parent896e7cecbaf8e8ee16e8ec659ed50a758bae6974 (diff)
downloadchromium_src-d4daea0deeeb80bfebf7a487410f77a48238c061.zip
chromium_src-d4daea0deeeb80bfebf7a487410f77a48238c061.tar.gz
chromium_src-d4daea0deeeb80bfebf7a487410f77a48238c061.tar.bz2
win: Use lld-link.exe if use_lld is set to 1.
Assumes that lld-link.exe has been checked out and built, and is available in third_party/llvm-build/Release+Asserts/bin. Will work only after https://codereview.chromium.org/736133007/ is in. BUG=436277 TEST=python build/gyp_chromium -Duse_lld=1 R=hans@chromium.org Review URL: https://codereview.chromium.org/755893002 Cr-Commit-Position: refs/heads/master@{#305561}
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 77939be..a9c26d32 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -567,6 +567,9 @@
# cross-compile builds.
'clang%': 0,
+ # Use experimental lld linker instead of the platform's default linker.
+ 'use_lld%': 0,
+
# Enable plug-in installation by default.
'enable_plugin_installation%': 1,
@@ -1302,6 +1305,7 @@
'clang%': '<(clang)',
'host_clang%': '<(host_clang)',
'make_clang_dir%': '<(make_clang_dir)',
+ 'use_lld%': '<(use_lld)',
# Control which version of clang to use when building for iOS. If set to
# '1', uses the version of clang that ships with Xcode. If set to '0', uses
@@ -5736,6 +5740,13 @@
['CC', '<(make_clang_dir)/bin/clang-cl'],
],
}],
+ ['use_lld==1 and OS=="win"', {
+ 'make_global_settings': [
+ # Limited to Windows because lld-link is the driver that is compatible
+ # to link.exe.
+ ['LD', '<(make_clang_dir)/bin/lld-link'],
+ ],
+ }],
['OS=="android" and clang==0', {
# Hardcode the compiler names in the Makefile so that
# it won't depend on the environment at make time.