Skip to content

Commit

Permalink
Add -stdlib=libc++ for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jan 16, 2015
1 parent 9f5ed14 commit 136b3da
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@
}], # 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': [
Expand Down Expand Up @@ -189,9 +197,6 @@
'xcode_settings': {
'CC': '/usr/bin/clang',
'LDPLUSPLUS': '/usr/bin/clang++',
'OTHER_CPLUSPLUSFLAGS': [
'$(inherited)', '-std=gnu++11'
],
'OTHER_CFLAGS': [
'-fcolor-diagnostics',
],
Expand Down

0 comments on commit 136b3da

Please sign in to comment.