Skip to content

Commit fab534b

Browse files
authored
Detect conda gcc for -Wno-unused-but-set-variable as well (#11112)
1 parent 8ac0dc2 commit fab534b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def mypycify(
508508
'-Wno-unreachable-code', '-Wno-unused-variable',
509509
'-Wno-unused-command-line-argument', '-Wno-unknown-warning-option',
510510
]
511-
if 'gcc' in compiler.compiler[0]:
511+
if 'gcc' in compiler.compiler[0] or 'gnu-cc' in compiler.compiler[0]:
512512
# This flag is needed for gcc but does not exist on clang.
513513
cflags += ['-Wno-unused-but-set-variable']
514514
elif compiler.compiler_type == 'msvc':

0 commit comments

Comments
 (0)