Skip to content

Commit ea29307

Browse files
Fix for mac c++17 support
1 parent 0ebf147 commit ea29307

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ def run(self):
9090
'-Wno-write-strings',
9191
]
9292
elif 'DARWIN' in platform.system().upper():
93-
compile_args = [
94-
'-std=c++17',
95-
]
93+
# Mac doesn't respect the compiler args, but will append with ARCHFLAGS environment variable
94+
os.environ['ARCHFLAGS'] = '-std=c++17'
9695
else:
9796
compile_args = []
9897

0 commit comments

Comments
 (0)