Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fab534b

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎mypyc/build.py

Copy file name to clipboardExpand all lines: mypyc/build.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.