Index: third_party/libc++/BUILD.gn |
diff --git a/third_party/libc++/BUILD.gn b/third_party/libc++/BUILD.gn |
index e6d7074be3b2da5fa25d13abffee1d147812bb4c..093fd431aba8b1f02543efd1f7d25fc2ca505878 100644 |
--- a/third_party/libc++/BUILD.gn |
+++ b/third_party/libc++/BUILD.gn |
@@ -2,16 +2,19 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+# Used by libc++ and libc++abi. |
config("config") { |
+ defines = [ "LIBCXX_BUILDING_LIBCXXABI" ] |
cflags = [ |
- "-isystem" + rebase_path("trunk/include", root_build_dir), |
- "-isystem" + rebase_path("../libc++abi/trunk/include", root_build_dir), |
"-fPIC", |
"-fstrict-aliasing", |
- "-nostdinc++", |
"-pthread", |
+ ] |
+ cflags_cc = [ |
+ "-nostdinc++", |
+ "-isystem" + rebase_path("trunk/include", root_build_dir), |
+ "-isystem" + rebase_path("../libc++abi/trunk/include", root_build_dir), |
"-std=c++11", |
- "-DLIBCXX_BUILDING_LIBCXXABI", |
] |
} |
@@ -58,7 +61,6 @@ shared_library("libc++") { |
"//build/config/sanitizers:sanitizer_options_link_helper", |
] |
- defines = [ "LIBCXX_BUILDING_LIBCXXABI" ] |
ldflags = [ "-nodefaultlibs" ] |
# TODO(GYP): Remove "-pthread" from ldflags. |
@@ -89,6 +91,11 @@ group("libcxx_proxy") { |
} |
config("link_helper") { |
+ cflags_cc = [ |
Sam McNally
2016/01/27 22:43:30
This config is only used by binaries and shared li
Nico
2016/01/27 22:54:00
Oh, thanks! https://code.google.com/p/chromium/cod
|
+ "-nostdinc++", |
+ "-isystem" + rebase_path("trunk/include", root_build_dir), |
+ "-isystem" + rebase_path("../libc++abi/trunk/include", root_build_dir), |
+ ] |
ldflags = [ |
"-stdlib=libc++", |