summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-06-27 20:04:51 +0200
committerAndras Becsi <andras.becsi@digia.com>2014-06-04 18:19:35 +0200
commit6ebae8b61ce66fb247e7c497b2086db68adeb2a0 (patch)
tree3491b0e971a3c4b4c6ccdec576c1dfcc2a12febb
parentb2bb11d26c98c6e951d1e492a45017b0ac5bdb25 (diff)
downloadqtwebengine-chromium-6ebae8b61ce66fb247e7c497b2086db68adeb2a0.tar.gz
<tools/gyp> Add support for libc++ to xcode_emulation.py
Change-Id: Ifbe063950d14d8388e3c8c1d6cebdfae5cbdb8ae Reviewed-by: Zeno Albisser <zeno.albisser@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
-rw-r--r--chromium/tools/gyp/pylib/gyp/xcode_emulation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/tools/gyp/pylib/gyp/xcode_emulation.py b/chromium/tools/gyp/pylib/gyp/xcode_emulation.py
index 5e50f10df8e..31191da432c 100644
--- a/chromium/tools/gyp/pylib/gyp/xcode_emulation.py
+++ b/chromium/tools/gyp/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')