diff options
author | Edward Hervey <edward@centricular.com> | 2018-09-21 17:51:29 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2018-09-21 17:51:29 +0200 |
commit | 12ed47ddd7e6454d8316f3d5003244f7e514bbba (patch) | |
tree | beb7a9e5104a61ccc1f4bb9a79c31687805838ce /config | |
parent | d68e9ed80c20c80c87a90149f0c9f7153d871341 (diff) |
config: Use libc++ by default on osx
libstdc++ has been deprecated since 10.9 and has recently been
dropped by default.
Diffstat (limited to 'config')
-rw-r--r-- | config/darwin.config | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/darwin.config b/config/darwin.config index bec24595..9ba5dbbe 100644 --- a/config/darwin.config +++ b/config/darwin.config @@ -92,7 +92,9 @@ os.environ['NM'] = 'nm' os.environ['OBJCOPY'] = 'objcopy' os.environ['CC'] = 'clang' os.environ['OBJC'] = 'clang' -os.environ['CXX'] = 'clang++' +# Since 10.10 libstdc++ is deprecated, and might no longer be +# shipped. Make sure we use libc++ instead +os.environ['CXX'] = 'clang++ -stdlib=libc++' if target_arch != Architecture.UNIVERSAL: # Ensure lightweight architectures are build when only targetting one arch |