-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add options to use optimized and mangled compiler builtins #78472
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
I guess this is via -Zbuild-std? r=me with commits squash |
Yes, I used it via -Zbuild-std. For instance, the mangled version would help me to build a libos. I would enabled it via https://github.com/hermitcore/rusty-hermit/blob/master/.cargo/config#L3. |
@bors r+ |
📌 Commit 6de5125 has been approved by |
☀️ Test successful - checks-actions |
libary: Forward compiler-builtins "asm" and "mangled-names" feature In principle this is a followup of rust-lang#78472. In the previous PR was the support of the test crate missing. Now users will be able to do: ``` cargo build -Zbuild-std=core -Zbuild-std-features=compiler-builtins-asm ``` and correctly get the assembly implemenations for `memcpy` and friends.
In principle the compiler builtin features are also offered to alloc and std.