Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: build/common.gypi

Issue 1432133002: build: Add Windows port of LLVM LTO config. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index a253ce6766a7ccf9265189179aa69fc2b4745db4..b8329fc93dd5886ecb823c03599d91d0ce0652fe 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -6004,6 +6004,12 @@
['LD', '<(make_clang_dir)/bin/lld-link'],
],
}],
+ ['clang==1 and use_lto==1 and OS=="win"', {
+ 'make_global_settings': [
+ # llvm-lib is a replacement for lib.exe that understands bitcode.
Nico 2015/11/11 05:00:00 we don't bundle this, do we? how big is it?
pcc1 2015/11/11 20:22:10 Hm, since we do apparently bundle lld-link and lld
+ ['AR', '<(make_clang_dir)/bin/llvm-lib'],
+ ],
+ }],
['OS=="android" and clang==0', {
# Hardcode the compiler names in the Makefile so that
# it won't depend on the environment at make time.
@@ -6087,6 +6093,14 @@
],
}],
],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'AdditionalOptions': [
+ '-Xclang',
+ '-emit-llvm-bc',
+ ],
+ },
+ },
},
}],
# Apply a lower LTO optimization level as the default is too slow.
@@ -6106,6 +6120,13 @@
},
}],
],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'AdditionalOptions': [
+ '/opt:lldlto=1',
+ ],
+ },
+ },
},
}],
['use_lto==1 and clang==1 and target_arch=="arm"', {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698