Skip to content

Commit

Permalink
remove frecord-gcc-switches in macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
theblackcat102 committed Mar 7, 2019
1 parent c6ed1c3 commit c3f3dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c3f3dcb

Please sign in to comment.