| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 41deac87733cec779a5ae34f045994fb8b9590fd..86249d733ca9de4fec5fabaf7ea232dc27e7d2e0 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -404,34 +404,8 @@ config("compiler") {
|
| }
|
|
|
| if (is_mac) {
|
| - # Tell the compiler to use libc++'s headers and the linker to link
|
| - # against libc++. The latter part normally requires OS X 10.7,
|
| - # but we still support running on 10.6. How does this work? Two
|
| - # parts:
|
| - # 1. Chromium's clang doesn't error on -mmacosx-version-min=10.6
|
| - # combined with -stdlib=libc++ (it normally silently produced a
|
| - # binary that doesn't run on 10.6)
|
| - # 2. Further down, library_dirs is set to
|
| - # third_party/libc++-static, which contains a static
|
| - # libc++.a library. The linker then links against that instead
|
| - # of against /usr/lib/libc++.dylib when it sees the -lc++ flag
|
| - # added by the driver.
|
| - #
|
| - # In component builds, just link to the system libc++. This has
|
| - # the effect of making everything depend on libc++, which means
|
| - # component-build binaries won't run on 10.6 (no libc++ there),
|
| - # but for a developer-only configuration that's ok. (We don't
|
| - # want to raise the deployment target yet so that official and
|
| - # dev builds have the same deployment target. This affects
|
| - # things like which functions are considered deprecated.)
|
| cflags_cc += [ "-stdlib=libc++" ]
|
| ldflags += [ "-stdlib=libc++" ]
|
| - if (!is_component_build && !is_asan) {
|
| - ldflags += [
|
| - "-L",
|
| - rebase_path("//third_party/libc++-static", root_build_dir),
|
| - ]
|
| - }
|
| }
|
|
|
| # Add flags for link-time optimization. These flags enable
|
|
|