fix has_flag call in setup.py

This commit is contained in:
Wolf Vollprecht 2019-03-22 14:01:36 +01:00
parent 795700cdb8
commit fa83b40bfc
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class BuildExt(build_ext):
if sys.platform == 'darwin': if sys.platform == 'darwin':
c_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7'] c_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
if not has_flag('-std=c++17'): if not has_flag(self.compiler, '-std=c++17'):
c_opts.remove('-std=c++17') c_opts.remove('-std=c++17')
c_opts.append('-std=c++1z') c_opts.append('-std=c++1z')