Skip to content

Commit 2981ee5

Browse files
capickettfacebook-github-bot
authored andcommitted
Switch to force loading std for panic_handler
Summary: When building buck sysroot from source, `#[no_std]` crates would fail to link as shared libraries, citing "missing #[panic_handler]". Matt introduced a mechanism in rust-lang/rust#109421 that allows us to still link in the default panic handler from `std`, even if the rest of the crate is completely unused (as is the case with `no_std` crates). The net result is that we no longer need to force static linkage when building no_std crates with buckified sysroot. Reviewed By: zertosh Differential Revision: D47402849 fbshipit-source-id: 35e31c7ff6d5683ff32a3c1eb2d67acec57acc8f
1 parent 80a51ba commit 2981ee5

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

shim/third-party/rust/fixups/inventory/fixups.toml

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# #[no_std] cannot be built with shared linkage
2-
preferred_linkage = "static"
31
buildscript = []

0 commit comments

Comments
 (0)