mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Add rustc-abi field to target spec JSON
The Rust compiler now requires an explicit `rustc-abi: x86-softfloat` field when using the soft-float target feature. This was added in https://github.com/rust-lang/rust/pull/136146 and is part of the latest nightlies.
I updated the post branches in commit 688a21e4
This commit is contained in:
@@ -194,6 +194,12 @@ Cargo поддерживает различные целевые системы
|
||||
|
||||
Для получения дополнительной информации см. наш пост об [отключении SIMD](@/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.ru.md).
|
||||
|
||||
```json
|
||||
"rustc-abi": "x86-softfloat"
|
||||
```
|
||||
|
||||
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `x86-softfloat` field to `x86-softfloat`.
|
||||
|
||||
#### Соединяем все вместе
|
||||
|
||||
Наша спецификация целовой платформы выглядит следующим образом:
|
||||
@@ -212,7 +218,8 @@ Cargo поддерживает различные целевые системы
|
||||
"linker": "rust-lld",
|
||||
"panic-strategy": "abort",
|
||||
"disable-redzone": true,
|
||||
"features": "-mmx,-sse,+soft-float"
|
||||
"features": "-mmx,-sse,+soft-float",
|
||||
"rustc-abi": "x86-softfloat"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user