Index: build/config/mac/BUILD.gn |
diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn |
index 9288add13952d3ba3ee0d4fac2019ae510761824..889a7e9a0d3df670c408e80c2db8e0dfdd0e1ac6 100644 |
--- a/build/config/mac/BUILD.gn |
+++ b/build/config/mac/BUILD.gn |
@@ -13,6 +13,10 @@ config("sdk") { |
cflags = common_flags |
ldflags = common_flags |
+ if (is_clang) { |
+ cflags_cc = [ "-stdlib=libc++" ] |
+ ldflags += [ "-stdlib=libc++" ] |
+ } |
} |
# On Mac, this is used for everything except static libraries. |