forked from M-Labs/zynq-rs
1
0
Fork 0

libsupport_zynq: make panic handler an optional feature

This commit is contained in:
pca006132 2020-06-29 09:41:54 +08:00 committed by Gitea
parent dd288912af
commit 6195ad40c3
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,9 @@ edition = "2018"
[features] [features]
target_zc706 = ["libboard_zynq/target_zc706"] target_zc706 = ["libboard_zynq/target_zc706"]
target_cora_z7_10 = ["libboard_zynq/target_cora_z7_10"] target_cora_z7_10 = ["libboard_zynq/target_cora_z7_10"]
panic_handler = []
default = ["panic_handler"]
[dependencies] [dependencies]
r0 = "1" r0 = "1"

View File

@ -9,5 +9,6 @@ pub extern crate compiler_builtins;
pub mod boot; pub mod boot;
mod abort; mod abort;
#[cfg(feature = "panic_handler")]
mod panic; mod panic;
pub mod ram; pub mod ram;