fix(codegen): 🐛 Disable FP/NEON features in the target file
This fixes the build warnings for the new rustc nightly.
This commit is contained in:
parent
ffc6e50dcf
commit
9dcc5b192a
|
@ -4,8 +4,9 @@ pipelining = true
|
||||||
|
|
||||||
[target.aarch64-vesper-metta]
|
[target.aarch64-vesper-metta]
|
||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "target-feature=-fp-armv8",
|
"-C", "target-cpu=cortex-a53", # raspi 2 .. 3b+
|
||||||
"-C", "target-cpu=cortex-a53",
|
#"-C", "target-cpu=cortex-a73", # raspi 4
|
||||||
|
# ^^ how to set this dynamicall depending on the features??
|
||||||
"-C", "embed-bitcode=yes",
|
"-C", "embed-bitcode=yes",
|
||||||
"-Z", "macro-backtrace",
|
"-Z", "macro-backtrace",
|
||||||
]
|
]
|
||||||
|
|
|
@ -2,20 +2,23 @@
|
||||||
"llvm-target": "aarch64-unknown-none",
|
"llvm-target": "aarch64-unknown-none",
|
||||||
"data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
|
"data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
|
||||||
"arch": "aarch64",
|
"arch": "aarch64",
|
||||||
|
"features": "+strict-align,-neon,-fp-armv8",
|
||||||
"os": "vesper",
|
"os": "vesper",
|
||||||
"vendor": "metta",
|
"vendor": "metta",
|
||||||
"env": "",
|
"env": "",
|
||||||
"executables": true,
|
"executables": true,
|
||||||
"panic-strategy": "abort",
|
"panic-strategy": "abort",
|
||||||
"linker-flavor": "ld.lld",
|
|
||||||
"linker": "rust-lld",
|
"linker": "rust-lld",
|
||||||
|
"linker-flavor": "ld.lld",
|
||||||
"pre-link-args": {
|
"pre-link-args": {
|
||||||
"ld.lld": [
|
"ld.lld": [
|
||||||
"--print-gc-sections"
|
"--print-gc-sections"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"disable-redzone": true,
|
"disable-redzone": true,
|
||||||
|
"relocation-model": "static",
|
||||||
"target-endian": "little",
|
"target-endian": "little",
|
||||||
|
"max-atomic-width": 128,
|
||||||
"target-c-int-width": "32",
|
"target-c-int-width": "32",
|
||||||
"target-pointer-width": "64"
|
"target-pointer-width": "64"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue