mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Use panic abort by default
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use PanicStrategy;
|
||||
use target::TargetOptions;
|
||||
use std::default::Default;
|
||||
|
||||
@@ -40,6 +41,7 @@ pub fn opts() -> TargetOptions {
|
||||
linker_is_gnu: true,
|
||||
no_default_libraries: true,
|
||||
has_elf_tls: true,
|
||||
panic_strategy: PanicStrategy::Abort,
|
||||
.. Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user