From 5fe26754f1716a051e4d19402b3a49028af6b99d Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:35:15 +0200 Subject: [PATCH] Remove the -Csoft-float argument when building the kernel The targets specify the soft-float ABI already and -Csoft-float should likely have never existed in the first place. It is unsound to mix crates compiled with different float ABI's and the only stable way to get all crates to agree on the soft float ABI is by specifying a target which uses the soft float ABI anyway even without explicit -Csoft-float. See also https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.60-Csoft-float.60.20considered.20harmful --- recipes/core/kernel/recipe.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/core/kernel/recipe.toml b/recipes/core/kernel/recipe.toml index 089e16b62..6ba3b4b06 100644 --- a/recipes/core/kernel/recipe.toml +++ b/recipes/core/kernel/recipe.toml @@ -13,7 +13,6 @@ cargo rustc \ --release \ -Z build-std=core,alloc \ -- \ - -C soft-float \ -C link-arg=-T -Clink-arg="${COOKBOOK_SOURCE}/linkers/${ARCH}.ld" \ -C link-arg=-z -Clink-arg=max-page-size=0x1000 \ --emit link="${PWD}/kernel.all"