diff --git a/build.py b/build.py index 279004f..c8ecff7 100644 --- a/build.py +++ b/build.py @@ -255,7 +255,7 @@ def build_extensions(self): if not ext.extra_compile_args: ext.extra_compiler_args = [] extra_compile_args = ['-std=c99', '-UNDEBUG', '-D_GNU_SOURCE'] - if self.compiler.compiler_so[0].startswith('gcc'): + if self.compiler.compiler_so[0].startswith('gcc') and sys.platform != 'darwin': extra_compile_args.append('-frecord-gcc-switches') ext.extra_compile_args.extend(extra_compile_args) compile_c(