You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-Z build-std can work with release profile but failed on dev profile (debug build) when lto is enabled, but we have to enable lto otherwise binary will be too large.
= note: rust-lld: error: undefined symbol: core::panicking::panic::h218ed11d329799d8
>>> referenced by x86_64.rs:84 (src/mem/x86_64.rs:84)
>>> compiler_builtins-bb203116f4d58bf2.compiler_builtins.878843f6-cgu.6.rcgu.o:(compiler_builtins::mem::memmove::hb0804155d706ca64) in archive /home/jiaqi/source/td-shim/target/x86_64-unknown-none/debug/deps/libcompiler_builtins-bb203116f4d58bf2.rlib
>>> referenced by x86_64.rs:85 (src/mem/x86_64.rs:85)
>>> compiler_builtins-bb203116f4d58bf2.compiler_builtins.878843f6-cgu.6.rcgu.o:(compiler_builtins::mem::memmove::hb0804155d706ca64) in archive /home/jiaqi/source/td-shim/target/x86_64-unknown-none/debug/deps/libcompiler_builtins-bb203116f4d58bf2.rlib
>>> referenced by x86_64.rs:107 (src/mem/x86_64.rs:107)
>>> compiler_builtins-bb203116f4d58bf2.compiler_builtins.878843f6-cgu.6.rcgu.o:(compiler_builtins::mem::memset::h2e2853763d9a5b4a) in archive /home/jiaqi/source/td-shim/target/x86_64-unknown-none/debug/deps/libcompiler_builtins-bb203116f4d58bf2.rlib
>>> referenced 3 more times
...
Using
xbuild
requires additional installation. Cargo provides-Z build-std
to build rust program without standard library.For example:
The text was updated successfully, but these errors were encountered: