Skip to content

Commit fe4b3a3

Browse files
xry111chenhuacai
authored andcommitted
rust: Add -fno-isolate-erroneous-paths-dereference to bindgen_skip_c_flags
It's used to work around an objtool issue since commit abb2a55 ("LoongArch: Add cflag -fno-isolate-erroneous-paths-dereference"), but it's then passed to bindgen and cause an error because Clang does not have this option. Fixes: abb2a55 ("LoongArch: Add cflag -fno-isolate-erroneous-paths-dereference") Acked-by: Miguel Ojeda <ojeda@kernel.org> Tested-by: Mingcong Bai <jeffbai@aosc.io> Signed-off-by: Xi Ruoyao <xry111@xry111.site> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent e9a6fb0 commit fe4b3a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
298298
-fno-inline-functions-called-once -fsanitize=bounds-strict \
299299
-fstrict-flex-arrays=% -fmin-function-alignment=% \
300300
-fzero-init-padding-bits=% -mno-fdpic \
301-
--param=% --param asan-%
301+
--param=% --param asan-% -fno-isolate-erroneous-paths-dereference
302302

303303
# Derived from `scripts/Makefile.clang`.
304304
BINDGEN_TARGET_x86 := x86_64-linux-gnu

0 commit comments

Comments
 (0)