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

Unified Diff: build/common.gypi

Issue 6355010: clang: Make it possible to add a plugin through GYP_DEFINES (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 11 months 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 7f16b21c3f8e127873bde7c597bbd9524c1c3786..a93c562786f73565439403802970ba2e671911ca 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -270,6 +270,9 @@
# won't be necessary.
'clang%': 0,
+ 'clang_load%': '',
Evan Martin 2011/01/28 01:04:36 Can you add docs to these?
+ 'clang_add_plugin%': '',
+
# Override whether we should use Breakpad on Linux. I.e. for Chrome bot.
'linux_breakpad%': 0,
# And if we want to dump symbols for Breakpad-enabled builds.
@@ -1162,6 +1165,12 @@
'-mfpmath=sse',
],
}],
+ ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
+ 'cflags': [
+ '-Xclang', '-load', '-Xclang', '<(clang_load)',
+ '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
+ ],
+ }],
['no_strict_aliasing==1', {
'cflags': [
'-fno-strict-aliasing',
@@ -1274,6 +1283,12 @@
'-Wno-unnamed-type-template-args',
],
}],
+ ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
+ 'OTHER_CFLAGS': [
+ '-Xclang', '-load', '-Xclang', '<(clang_load)',
+ '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
+ ],
+ }],
],
},
'target_conditions': [
« 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