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

Unified Diff: third_party/libc++/libc++.gyp

Issue 1643613002: Only add -isystem for libc++ for C++ files, not C files. (Closed) Base URL: https://chromium.googlesource.com/chromium/buildtools.git@master
Patch Set: huh Created 4 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 | « third_party/libc++/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libc++/libc++.gyp
diff --git a/third_party/libc++/libc++.gyp b/third_party/libc++/libc++.gyp
index 5a966fc96134453bd4040db0a00cf11617dee4c6..9bb3eeaf4b35e9e3bf5ae04165b69d342e255bf0 100644
--- a/third_party/libc++/libc++.gyp
+++ b/third_party/libc++/libc++.gyp
@@ -26,12 +26,10 @@
'all_dependent_settings': {
'target_conditions': [
['_type!="none"', {
- 'cflags': [
- '-isystem<(libcxx_root)/trunk/include',
- '-isystem<(libcxx_root)/../libc++abi/trunk/include',
- ],
'cflags_cc': [
'-nostdinc++',
+ '-isystem<(libcxx_root)/trunk/include',
+ '-isystem<(libcxx_root)/../libc++abi/trunk/include',
],
'ldflags': [
'-stdlib=libc++',
@@ -88,12 +86,14 @@
'trunk/src/valarray.cpp',
],
'cflags': [
- '-isystem<(libcxx_root)/trunk/include',
- '-isystem<(libcxx_root)/../libc++abi/trunk/include',
'-fPIC',
'-fstrict-aliasing',
- '-nostdinc++',
'-pthread',
+ ],
+ 'cflags_cc': [
+ '-nostdinc++',
+ '-isystem<(libcxx_root)/trunk/include',
+ '-isystem<(libcxx_root)/../libc++abi/trunk/include',
'-std=c++11',
],
'cflags_cc!': [
« no previous file with comments | « third_party/libc++/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698