From 753b0e2e976bc7447687e72a6cf6cd35d8bfd773 Mon Sep 17 00:00:00 2001 From: Jake Schmitz Date: Mon, 15 Apr 2019 15:24:46 -0700 Subject: [PATCH] add platform conditional for osx -std=c++11 arg --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(