From 8ff78bbc027b3445c8f635aca6a7f3c0e9527bf0 Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Sun, 28 Nov 2021 01:40:58 +0100 Subject: [PATCH] feat(target): create custom target Signed-off-by: Julien CLEMENT --- .cargo/config.toml | 3 +++ Cargo.toml | 7 ------- x86_64-julios.json | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 x86_64-julios.json diff --git a/.cargo/config.toml b/.cargo/config.toml index b0a76ea..b9bb421 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,5 @@ [target.'cfg(target_os = "linux")'] rustflags = ["-C", "link-arg=-nostartfiles"] + +[unstable] +build-std = ["core", "compiler_builtins"] diff --git a/Cargo.toml b/Cargo.toml index c9e3ce8..063355c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,10 +7,3 @@ edition = "2018" [dependencies] - -[profile.dev] -panic = "abort" - -[profile.release] -panic = "abort" - diff --git a/x86_64-julios.json b/x86_64-julios.json new file mode 100644 index 0000000..aafc2c5 --- /dev/null +++ b/x86_64-julios.json @@ -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 +}