Skip to content

Commit e704578

Browse files
authored
[mypyc] Adjust gcc flags to fix librt.vecs compile error when using -O3 (#21093)
1 parent 3cf57e1 commit e704578

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

mypyc/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,10 @@ def get_cflags(
603603
"-Wno-unknown-warning-option",
604604
"-Wno-unused-but-set-variable",
605605
"-Wno-ignored-optimization-argument",
606+
# GCC at -O3 false-positives on struct hack (items[1]) in vec buffers
607+
"-Wno-array-bounds",
608+
"-Wno-stringop-overread",
609+
"-Wno-stringop-overflow",
606610
# Disables C Preprocessor (cpp) warnings
607611
# See https://github.com/mypyc/mypyc/issues/956
608612
"-Wno-cpp",

0 commit comments

Comments
 (0)