mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
The TU for Rust is a crate, not per-source. `rustc` expects entry file to TU as input, and cannot work with object files. So we need to have one-step build/link in most cases, similar to what old Swift was doing. Issue: #25492 Signed-off-by: Ayush Singh <ayush@beagleboard.org>
5 lines
81 B
Rust
5 lines
81 B
Rust
#[no_mangle]
|
|
pub extern "C" fn libc_greet() {
|
|
println!("Hello from libc");
|
|
}
|