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

Unified Diff: build/config/compiler/BUILD.gn

Issue 2572593002: [counting_allocator] Chrome changes.
Patch Set: Surface max_size; instrument flat_set. Created 3 years, 9 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 | « build/config/android/BUILD.gn ('k') | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 1f8968670781cf0c6a810bffa6bb47170c0d8979..cd630af194ee8a1adde036421cf97d5b7dae942e 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -450,8 +450,16 @@ config("compiler") {
}
if (is_mac) {
- cflags_cc += [ "-stdlib=libc++" ]
- ldflags += [ "-stdlib=libc++" ]
+ if (true) {
+ cflags_cc += [
+ "-nostdinc++",
+ "-isystem" + rebase_path("//buildtools/third_party/libc++/trunk/include", root_build_dir),
+ "-isystem" + rebase_path("//buildtools/third_party/libc++abi/trunk/include", root_build_dir),
+ ]
+ } else {
+ cflags_cc += [ "-stdlib=libc++" ]
+ ldflags += [ "-stdlib=libc++" ]
+ }
}
# Add flags for link-time optimization. These flags enable
« no previous file with comments | « build/config/android/BUILD.gn ('k') | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698