mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 19:57:02 +00:00

`compiler_builtins` exposes an `extern "C"` version of `libm` routines, so add the same here. There really isn't much to test here (unless we later add tests against C `libm` suites), but one nice benefit is this gives us a library with unmangled names that is easy to `objdump`. In accordance with that, also update `cb` to be a `staticlib`. Unfortunately this also means we have to remove it from the workspace, since Cargo doesn't allow setting `panic = "abort"` for a single crate.
8 lines
145 B
Rust
8 lines
145 B
Rust
#[path = "../../configure.rs"]
|
|
mod configure;
|
|
|
|
fn main() {
|
|
let cfg = configure::Config::from_env();
|
|
configure::emit_libm_config(&cfg);
|
|
}
|