Skip to content

Commit bc78eb5

Browse files
authored
Fix Mypyc not compiling on Arch Linux (#13978)
Closes mypyc/mypyc#956 This was originally a part of #13953, see #13953 (comment)
1 parent 451ae0e commit bc78eb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mypyc/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,10 @@ def mypycify(
534534
"-Wno-unused-command-line-argument",
535535
"-Wno-unknown-warning-option",
536536
"-Wno-unused-but-set-variable",
537+
"-Wno-ignored-optimization-argument",
538+
# Disables C Preprocessor (cpp) warnings
539+
# See https://github.com/mypyc/mypyc/issues/956
540+
"-Wno-cpp",
537541
]
538542
elif compiler.compiler_type == "msvc":
539543
# msvc doesn't have levels, '/O2' is full and '/Od' is disable

0 commit comments

Comments
 (0)