Skip to content

Commit

Permalink
Detect conda gcc for -Wno-unused-but-set-variable as well (#11112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c authored Sep 21, 2021
1 parent 8ac0dc2 commit fab534b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypyc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def mypycify(
'-Wno-unreachable-code', '-Wno-unused-variable',
'-Wno-unused-command-line-argument', '-Wno-unknown-warning-option',
]
if 'gcc' in compiler.compiler[0]:
if 'gcc' in compiler.compiler[0] or 'gnu-cc' in compiler.compiler[0]:
# This flag is needed for gcc but does not exist on clang.
cflags += ['-Wno-unused-but-set-variable']
elif compiler.compiler_type == 'msvc':
Expand Down

0 comments on commit fab534b

Please sign in to comment.