diff --git a/setup.py b/setup.py index 38e3918..63d9edc 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,9 @@ def get_file_contents(filename): return fp.read() -extra_compile_args = ['-Wall', '-g', '-x', 'c++', '-std=c++11'] +extra_compile_args = ['-Wall', '-g', '-x', 'c++'] +if platform.system() == 'Darwin': + extra_compile_args += ['-std=c++11'] ext_modules = [ Extension(