Skip to content

Commit 6ebae8b

Browse files
zenoalbisserbbandix
authored andcommitted
<tools/gyp> Add support for libc++ to xcode_emulation.py
Change-Id: Ifbe063950d14d8388e3c8c1d6cebdfae5cbdb8ae Reviewed-by: Zeno Albisser <[email protected]> Reviewed-by: Andras Becsi <[email protected]>
1 parent b2bb11d commit 6ebae8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chromium/tools/gyp/pylib/gyp/xcode_emulation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ def GetLdflags(self, configname, product_dir, gyp_to_build_path, arch=None):
609609
for ldflag in self._Settings().get('OTHER_LDFLAGS', []):
610610
ldflags.append(self._MapLinkerFlagFilename(ldflag, gyp_to_build_path))
611611

612+
if self._Test('USE_LIBCPP', 'YES', default='NO'):
613+
ldflags.append('-stdlib=libc++')
614+
612615
if self._Test('DEAD_CODE_STRIPPING', 'YES', default='NO'):
613616
ldflags.append('-Wl,-dead_strip')
614617

0 commit comments

Comments
 (0)