From fa83b40bfc94149a2838d6062ad1c2fa5e592343 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Fri, 22 Mar 2019 14:01:36 +0100 Subject: [PATCH] fix has_flag call in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b251bfac4..56755df1d 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,7 @@ class BuildExt(build_ext): if sys.platform == 'darwin': 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.append('-std=c++1z')