From 9dcc5b192a364528658367dcd90a782b961c3f96 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Thu, 14 Apr 2022 16:45:03 +0300 Subject: [PATCH] =?UTF-8?q?fix(codegen):=20=F0=9F=90=9B=20Disable=20FP/NEO?= =?UTF-8?q?N=20features=20in=20the=20target=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the build warnings for the new rustc nightly. --- .cargo/config.toml | 5 +++-- targets/aarch64-vesper-metta.json | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index b452adf..9b37f7d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -4,8 +4,9 @@ pipelining = true [target.aarch64-vesper-metta] rustflags = [ - "-C", "target-feature=-fp-armv8", - "-C", "target-cpu=cortex-a53", + "-C", "target-cpu=cortex-a53", # raspi 2 .. 3b+ + #"-C", "target-cpu=cortex-a73", # raspi 4 + # ^^ how to set this dynamicall depending on the features?? "-C", "embed-bitcode=yes", "-Z", "macro-backtrace", ] diff --git a/targets/aarch64-vesper-metta.json b/targets/aarch64-vesper-metta.json index 79c423f..f7fb0c8 100644 --- a/targets/aarch64-vesper-metta.json +++ b/targets/aarch64-vesper-metta.json @@ -2,20 +2,23 @@ "llvm-target": "aarch64-unknown-none", "data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", "arch": "aarch64", + "features": "+strict-align,-neon,-fp-armv8", "os": "vesper", "vendor": "metta", "env": "", "executables": true, "panic-strategy": "abort", - "linker-flavor": "ld.lld", "linker": "rust-lld", + "linker-flavor": "ld.lld", "pre-link-args": { "ld.lld": [ "--print-gc-sections" ] }, "disable-redzone": true, + "relocation-model": "static", "target-endian": "little", + "max-atomic-width": 128, "target-c-int-width": "32", "target-pointer-width": "64" }