File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,12 @@ $(objtree)/rust/exports_kernel_generated.h: exports_target_type := _RUST_GPL
62
62
$(objtree ) /rust/exports_kernel_generated.h : $(objtree ) /rust/kernel.o FORCE
63
63
$(call if_changed,exports)
64
64
65
+ # `-Cpanic=unwind -Cforce-unwind-tables=y` overrides `rustc_flags` in order to
66
+ # avoid the https://github.com/rust-lang/rust/issues/82320 rustc crash.
65
67
quiet_cmd_rustc_procmacro = RUSTC P $@
66
68
cmd_rustc_procmacro = \
67
69
$(RUSTC ) $(rustc_flags ) --emit=dep-info,link --extern proc_macro \
70
+ -Cpanic=unwind -Cforce-unwind-tables=y \
68
71
--crate-type proc-macro --out-dir $(objtree ) /rust/ \
69
72
--crate-name $(patsubst lib% .so,% ,$(notdir $@ ) ) $< ; \
70
73
mv $(objtree ) /rust/$(patsubst lib% .so,% ,$(notdir $@ ) ) .d $(depfile ) ; \
You can’t perform that action at this time.
0 commit comments