Skip to content

Commit 5d4f5d4

Browse files
committed
bindgen: skip -mbranch-protection option(s)
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 9865255 commit 5d4f5d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rust/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ else
4545
# `TENTATIVE_CLANG_FLAGS`.
4646
bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
4747
-mskip-rax-setup -mgeneral-regs-only -msign-return-address=% \
48-
-mabi=lp64 -mstack-protector-guard% -fconserve-stack -falign-jumps=% \
49-
-falign-loops=% -fno-ipa-cp-clone -fno-partial-inlining \
50-
-fno-reorder-blocks -fno-allow-store-data-races -fasan-shadow-offset=% \
48+
-mabi=lp64 -mstack-protector-guard% -mbranch-protection% \
49+
-fconserve-stack -falign-jumps=% -falign-loops=% -fno-ipa-cp-clone \
50+
-fno-partial-inlining -fno-reorder-blocks -fno-allow-store-data-races \
51+
-fasan-shadow-offset=% \
5152
-Wno-packed-not-aligned -Wno-format-truncation -Wno-format-overflow \
5253
-Wno-stringop-truncation -Wno-unused-but-set-variable \
5354
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized \

0 commit comments

Comments
 (0)