summaryrefslogtreecommitdiffstats
path: root/patches/chromium/tools/gyp/0002-Add-support-for-libc-to-xcode_emulation.py.patch
blob: b4a39a42f4539e92030bd6111051fd94e7b72b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Zeno Albisser <zeno.albisser@digia.com>
Date: Thu, 27 Jun 2013 20:04:51 +0200
Subject: Add support for libc++ to xcode_emulation.py

---
 pylib/gyp/xcode_emulation.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pylib/gyp/xcode_emulation.py b/pylib/gyp/xcode_emulation.py
index 5e50f10..31191da 100644
--- a/pylib/gyp/xcode_emulation.py
+++ b/pylib/gyp/xcode_emulation.py
@@ -609,6 +609,9 @@ class XcodeSettings(object):
     for ldflag in self._Settings().get('OTHER_LDFLAGS', []):
       ldflags.append(self._MapLinkerFlagFilename(ldflag, gyp_to_build_path))
 
+    if self._Test('USE_LIBCPP', 'YES', default='NO'):
+      ldflags.append('-stdlib=libc++')
+
     if self._Test('DEAD_CODE_STRIPPING', 'YES', default='NO'):
       ldflags.append('-Wl,-dead_strip')