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
This commit is contained in:
bjorn3 2024-09-02 16:35:15 +02:00
parent 39fa9acd64
commit 5fe26754f1

View File

@ -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"