diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txt index 4ab525874..362abfe1f 100644 --- a/app/src/main/cpp/CMakeLists.txt +++ b/app/src/main/cpp/CMakeLists.txt @@ -145,6 +145,7 @@ corrosion_import_crate( FEATURES $,android-26,android> FLAGS $<$>:-Z build-std -Z build-std-features=> ) +corrosion_add_target_rustflags(ehviewer_rust $<$>:-Z unstable-options -C panic=immediate-abort>) corrosion_link_libraries(ehviewer_rust android jnigraphics log webp webpdemux) # Build and link our app's native lib diff --git a/app/src/main/rust/Cargo.toml b/app/src/main/rust/Cargo.toml index 30e60531c..9c56f8083 100644 --- a/app/src/main/rust/Cargo.toml +++ b/app/src/main/rust/Cargo.toml @@ -1,5 +1,3 @@ -cargo-features = ["panic-immediate-abort"] - [package] name = "ehviewer_rust" version = "0.0.0" @@ -36,7 +34,7 @@ reqwest = "0.12" tokio = { version = "1", features = ["macros"] } [profile.release] -panic = "immediate-abort" +panic = "abort" strip = true lto = true codegen-units = 1