Skip to content

Commit

Permalink
Made panic_handler optional (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
3than3 authored Oct 30, 2020
1 parent c627c70 commit 41933c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions uefi-services/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ x86_64 = "0.12.1"
[features]
# Enable QEMU-specific functionality
qemu = []
no_panic_handler = []
1 change: 1 addition & 0 deletions uefi-services/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ fn exit_boot_services(_e: Event) {
#[lang = "eh_personality"]
fn eh_personality() {}

#[cfg(not(feature = "no_panic_handler"))]
#[panic_handler]
fn panic_handler(info: &core::panic::PanicInfo) -> ! {
if let Some(location) = info.location() {
Expand Down

0 comments on commit 41933c8

Please sign in to comment.