Skip to content
Snippets Groups Projects
Unverified Commit 20d0e3b3 authored by E. G. Patrick Bos's avatar E. G. Patrick Bos
Browse files

Fix building on macOS Sierra (10.12)

The -stdlib=libc++ flag is no longer supported on Sierra (it is now the
default option). I added a version check that adds the option for macOS
versions below Sierra (10.12) and removed the option otherwise.
parent c736f45f
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,11 @@ def get_config_schema():
]
default_libs = []
from pkg_resources import parse_version
if parse_version(osx_ver) < parse_version('10.12'): # before Sierra
default_cxxflags = default_cxxflags + ['-stdlib=libc++']
default_cxxflags = default_cxxflags + [
'-stdlib=libc++', '-mmacosx-version-min=10.7',
'-mmacosx-version-min=10.7',
'-arch', 'i386', '-arch', 'x86_64'
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment