Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 16, 2024
1 parent 3f2b4c5 commit 9323a60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nopanic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
components: rust-src
- run: cargo build --release --target=x86_64-win7-windows-msvc -Zbuild-std=core
- run: dir target/
- run: dir target/x86_64-win7-windows-msvc/release/
- run: cargo build --release
- run: dir target/
- run: dir target/release/
7 changes: 5 additions & 2 deletions nopanic_check/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// WASI preview 2 requires enabled std
#![cfg_attr(not(all(target_arch = "wasm32", target_env = "p2")), no_std)]
#![cfg_attr(
not(any(windows, all(target_arch = "wasm32", target_env = "p2"))),
no_std
)]

#[cfg(not(any(test, all(target_arch = "wasm32", target_env = "p2"))))]
#[cfg(not(any(test, windows, all(target_arch = "wasm32", target_env = "p2"))))]
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
extern "C" {
Expand Down

0 comments on commit 9323a60

Please sign in to comment.