Skip to content

Commit

Permalink
[setup.py] pass extra compiler flags on OS X to enable support for C+…
Browse files Browse the repository at this point in the history
…+11: -stdlib=libc++ -mmacosx-version-min=10.7
  • Loading branch information
Cosimo Lupo committed Aug 14, 2015
1 parent d811b18 commit e88fe7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def build_extension(self, ext):
objects = []
for lang, sources in (("c", c_sources), ("c++", cxx_sources)):
if lang == "c++":
if platform.system() == "Darwin":
extra_args.extend(["-stdlib=libc++", "-mmacosx-version-min=10.7"])
if self.compiler.compiler_type in ["unix", "cygwin", "mingw32"]:
extra_args.append("-std=c++0x")
elif self.compiler.compiler_type == "msvc":
Expand Down

0 comments on commit e88fe7b

Please sign in to comment.