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

Unified Diff: build/common.gypi

Issue 11468030: proof of concept for building with libc++ Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works. needs breakpad patch too. Created 8 years 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 | chrome/browser/intents/cws_intents_registry.h » ('j') | 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 31bf1c47428392e53769a961a1e8eb3f337ea715..7040f881bc537e91854ff53f7e24bb9c88984fe1 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3271,6 +3271,22 @@
# also contain a default: branch. Chrome is full of that.
'-Wno-covered-switch-default',
],
+ 'OTHER_CFLAGS': [
+ '-stdlib=libc++',
+ '-I/Users/thakis/src/libcxx/include/',
+ '-I/Users/thakis/src/libcxxabi/include/',
+ '-Wno-#warnings', # For the deprecation warning in ext/hash_map
+ ],
+ 'target_conditions': [
+ ['_type!="static_library"', {
+ 'OTHER_LDFLAGS': [
+ '-nodefaultlibs',
+ '~/src/libcxx/lib/libc++.a',
+ '~/src/libcxxabi/lib/libc++abi.a',
+ '-lSystem',
+ ],
+ }],
+ ],
'OTHER_CPLUSPLUSFLAGS': [
# gnu++11 instead of c++11 so that __ANSI_C__ doesn't get
# defined. (Else e.g. finite() in base/float_util.h needs to
« no previous file with comments | « no previous file | chrome/browser/intents/cws_intents_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698