Clarify that panic-strategy option is required in target json

The Cargo.toml option does not apply to the core library compiled by cargo-xbuild.
This commit is contained in:
Philipp Oppermann
2019-08-12 19:23:57 +02:00
parent f4123dc011
commit cd5dd17a99

View File

@@ -161,6 +161,8 @@ Instead of using the platform's default linker (which might not support Linux ta
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.
(Note that in contrast to the Cargo.toml option, this target option also applies when we recompile the `core` library later in this post. So be sure to add this option, even if you prefer to keep the Cargo.toml option.)
[stack unwinding]: http://www.bogotobogo.com/cplusplus/stackunwinding.php
```json