Skip to content

Commit

Permalink
Update target specs for recent Rust versions (#698)
Browse files Browse the repository at this point in the history
* Update target specs for recent Rust versions

* Revert debug thing
  • Loading branch information
tomaka authored Jan 2, 2021
1 parent 489f892 commit d047867
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 37 deletions.
20 changes: 9 additions & 11 deletions kernel/standalone-builder/res/specs/aarch64-freestanding.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
{
"abi-blacklist": [
"stdcall",
"fastcall",
"vectorcall",
"thiscall",
"win64",
"sysv64"
],
"arch": "aarch64",
"data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
"disable-redzone": true,
"env": "",
"executables": true,
"features": "+strict-align,-neon,-fp-armv8",
"is-builtin": true,
"features": "+strict-align,+neon,+fp-armv8",
"linker": "rust-lld",
"linker-flavor": "ld.lld",
"linker-is-gnu": true,
Expand All @@ -25,5 +16,12 @@
"target-c-int-width": "32",
"target-endian": "little",
"target-pointer-width": "64",
"vendor": ""
"unsupported-abis": [
"stdcall",
"fastcall",
"vectorcall",
"thiscall",
"win64",
"sysv64"
]
}
17 changes: 8 additions & 9 deletions kernel/standalone-builder/res/specs/arm-freestanding.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"abi-blacklist": [
"stdcall",
"fastcall",
"vectorcall",
"thiscall",
"win64",
"sysv64"
],
"arch": "arm",
"data-layout": "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64",
"emit-debug-gdb-scripts": false,
Expand All @@ -24,5 +16,12 @@
"target-c-int-width": "32",
"target-endian": "little",
"target-pointer-width": "32",
"vendor": ""
"unsupported-abis": [
"stdcall",
"fastcall",
"vectorcall",
"thiscall",
"win64",
"sysv64"
]
}
29 changes: 14 additions & 15 deletions kernel/standalone-builder/res/specs/riscv-hifive.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
"abi-blacklist": [
"cdecl",
"stdcall",
"fastcall",
"vectorcall",
"thiscall",
"aapcs",
"win64",
"sysv64",
"ptx-kernel",
"msp430-interrupt",
"x86-interrupt",
"amdgpu-kernel"
],
"arch": "riscv32",
"cpu": "generic-rv32",
"data-layout": "e-m:e-p:32:32-i64:64-n32-S128",
Expand All @@ -32,5 +18,18 @@
"target-c-int-width": "32",
"target-endian": "little",
"target-pointer-width": "32",
"vendor": "unknown"
"unsupported-abis": [
"cdecl",
"stdcall",
"fastcall",
"vectorcall",
"thiscall",
"aapcs",
"win64",
"sysv64",
"ptx-kernel",
"msp430-interrupt",
"x86-interrupt",
"amdgpu-kernel"
]
}
3 changes: 1 addition & 2 deletions kernel/standalone-builder/res/specs/x86_64-multiboot2.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@
"stack-probes": true,
"target-c-int-width": "32",
"target-endian": "little",
"target-pointer-width": "64",
"vendor": "unknown"
"target-pointer-width": "64"
}

0 comments on commit d047867

Please sign in to comment.