feat(target): create custom target

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
Julien CLEMENT 2021-11-28 01:40:58 +01:00
parent 84a599e8f5
commit 8ff78bbc02
3 changed files with 18 additions and 7 deletions

View File

@ -1,2 +1,5 @@
[target.'cfg(target_os = "linux")']
rustflags = ["-C", "link-arg=-nostartfiles"]
[unstable]
build-std = ["core", "compiler_builtins"]

View File

@ -7,10 +7,3 @@ edition = "2018"
[dependencies]
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"

15
x86_64-julios.json Normal file
View File

@ -0,0 +1,15 @@
{
"llvm-target": "x86_64-unknown-none",
"data-layout": "e-m:e-i64:64-f80:128-n8:16:32:64-S128",
"arch": "x86_64",
"target-endian": "little",
"target-pointer-width": "64",
"target-c-int-width": "32",
"os": "none",
"panic-strategy": "abort",
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"executables": true
}