]> khamidou — GitHub mirrors - electron.git/commitdiff
Add -stdlib=libc++ for linking
authorCheng Zhao <zcbenz@gmail.com>
Fri, 16 Jan 2015 01:02:04 +0000 (17:02 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 16 Jan 2015 01:17:43 +0000 (17:17 -0800)
common.gypi

index 1d656c2dadcace89f783c0be79bf45f71b4334e0..fae82aaf21115bd279649700f35d8cd153e61836 100644 (file)
           }],  # OS=="linux"
         ],
       }],
+      ['_type in ["executable", "shared_library"]', {
+        # On some machines setting CLANG_CXX_LIBRARY doesn't work for linker.
+        'xcode_settings': {
+          'OTHER_LDFLAGS': [
+            '-stdlib=libc++'
+          ],
+        },
+      }],
     ],
     'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.
     'msvs_disabled_warnings': [
         'xcode_settings': {
           'CC': '/usr/bin/clang',
           'LDPLUSPLUS': '/usr/bin/clang++',
-          'OTHER_CPLUSPLUSFLAGS': [
-            '$(inherited)', '-std=gnu++11'
-          ],
           'OTHER_CFLAGS': [
             '-fcolor-diagnostics',
           ],