RustForge

foundry

Foundry OS: the operating system built on the Rustbelt kernel

foundry / rust / .cargo / config.toml
441 bytes ยท raw
1
2
3
4
5
6
7
8
9
# Cargo reads this file when it runs from rust/ (the Makefile cds here).
[build]
target = "x86_64-unknown-none"

# Same flags as the kernel's build.rs: a static (not position-independent)
# executable, and the "large" code model because the code lives above 4 GiB.
# The linker script is added by rbrt/build.rs (it needs an absolute path).
[target.x86_64-unknown-none]
rustflags = ["-C", "relocation-model=static", "-C", "code-model=large"]