Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
23c9f74b584f93dada7d7556ac9112b51a844fdd
rust/library/compiler-builtins/libm/crates/compiler-builtins-smoke-test/build.rs

8 lines
145 B
Rust
Raw Normal View History

Expose C versions of `libm` functions in the `cb` crate `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.
2025-01-12 07:43:24 +00:00
#[path = "../../configure.rs"]
mod configure;
fn main() {
let cfg = configure::Config::from_env();
configure::emit_libm_config(&cfg);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 94ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API