We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03777f6 + 73f5cc7 commit 9ba918aCopy full SHA for 9ba918a
rust/Makefile
@@ -62,9 +62,12 @@ $(objtree)/rust/exports_kernel_generated.h: exports_target_type := _RUST_GPL
62
$(objtree)/rust/exports_kernel_generated.h: $(objtree)/rust/kernel.o FORCE
63
$(call if_changed,exports)
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.
67
quiet_cmd_rustc_procmacro = RUSTC P $@
68
cmd_rustc_procmacro = \
69
$(RUSTC) $(rustc_flags) --emit=dep-info,link --extern proc_macro \
70
+ -Cpanic=unwind -Cforce-unwind-tables=y \
71
--crate-type proc-macro --out-dir $(objtree)/rust/ \
72
--crate-name $(patsubst lib%.so,%,$(notdir $@)) $<; \
73
mv $(objtree)/rust/$(patsubst lib%.so,%,$(notdir $@)).d $(depfile); \
0 commit comments