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

Unified Diff: build/common.gypi

Issue 14169006: roll clang 176256:179138 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros main waterfall Created 7 years, 8 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 | tools/clang/scripts/update.sh » ('j') | tools/clang/scripts/update.sh » ('J')
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 8051437ee0c5263d4543c140e78ae1bf19f2a6fb..e11be55389706961528202efc2a0ad8db3339d03 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2965,6 +2965,13 @@
'-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
],
}],
+ ['clang==1 and target_arch=="ia32"', {
+ 'cflags': [
+ # Else building libyuv gives clang's register allocator issues,
+ # see llvm.org/PR15798 / crbug.com/233709
+ '-momit-leaf-frame-pointer',
+ ],
+ }],
['clang==1 and "<(GENERATOR)"=="ninja"', {
'cflags': [
# See http://crbug.com/110262
@@ -2980,6 +2987,12 @@
'-fno-omit-frame-pointer',
'-gline-tables-only',
],
+ 'ldflags!': [
+ # Functions interposed by the sanitizers can make ld think
+ # that some libraries aren't needed when they actually are,
+ # http://crbug.com/234010. As workaround, disable --as-needed.
+ '-Wl,--as-needed',
+ ],
}],
],
}],
« no previous file with comments | « no previous file | tools/clang/scripts/update.sh » ('j') | tools/clang/scripts/update.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698