mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Fix: Change "panic" to "panic-strategy" (#392)
This commit is contained in:
committed by
Philipp Oppermann
parent
07553ed219
commit
1cdc010446
@@ -143,7 +143,7 @@ Instead of using the platform's default linker (which might not support Linux ta
|
|||||||
[LLD]: https://lld.llvm.org/
|
[LLD]: https://lld.llvm.org/
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"panic": "abort",
|
"panic-strategy": "abort",
|
||||||
```
|
```
|
||||||
|
|
||||||
This setting specifies that the target doesn't support [stack unwinding] on panic, so instead the program should abort directly. This has the same effect as the `panic = "abort"` option in our Cargo.toml, so we can remove it from there.
|
This setting specifies that the target doesn't support [stack unwinding] on panic, so instead the program should abort directly. This has the same effect as the `panic = "abort"` option in our Cargo.toml, so we can remove it from there.
|
||||||
@@ -189,7 +189,7 @@ Our target specification file now looks like this:
|
|||||||
"executables": true,
|
"executables": true,
|
||||||
"features": "-mmx,-sse,+soft-float",
|
"features": "-mmx,-sse,+soft-float",
|
||||||
"disable-redzone": true,
|
"disable-redzone": true,
|
||||||
"panic": "abort"
|
"panic-strategy": "abort"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -11,5 +11,5 @@
|
|||||||
"executables": true,
|
"executables": true,
|
||||||
"features": "-mmx,-sse,+soft-float",
|
"features": "-mmx,-sse,+soft-float",
|
||||||
"disable-redzone": true,
|
"disable-redzone": true,
|
||||||
"panic": "abort"
|
"panic-strategy": "abort"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user