Joint Compilation for rust crate.
Go to file
pointer-to-bios fd2ce31dc4 jointcomp 2024-11-18 02:07:26 +08:00
src jointcomp 2024-11-18 02:07:26 +08:00
.gitignore jointcomp 2024-11-18 02:07:26 +08:00
Cargo.toml jointcomp 2024-11-18 02:07:26 +08:00
README.md jointcomp 2024-11-18 02:07:26 +08:00

README.md

JointComp

Joint compileation of various languages and assembly language.

Just write a target list in build.rs to joint compile your multiple lang project.

A simple example:

targets! {
    GccAsm {
        "main.S",
        "test.S",
    };
    #[cfg(target_arch = "x86_64")]
    GccAsm {
        "arch/$/foo.S" : "include/$/bar.h",
    };
    LinkerScript { "myscript-$.lds" };
    LinkerMap { "target.map" };
}