rust: allow configuring panic-strategy
This defaults to "unwind" if not set, so this alone has no effect. Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
This commit is contained in:
@@ -279,6 +279,7 @@ def rust_gen_target(d, thing, wd):
|
||||
tspec['has-rpath'] = True
|
||||
tspec['has-elf-tls'] = True
|
||||
tspec['position-independent-executables'] = True
|
||||
tspec['panic-strategy'] = d.getVar("RUST_PANIC_STRATEGY")
|
||||
|
||||
# Don't use jemalloc as it doesn't work for many targets.
|
||||
# https://github.com/rust-lang/rust/pull/37392
|
||||
|
||||
Reference in New Issue
Block a user