Skip to content

Commit

Permalink
Merge pull request #236 from kcalbxof/ewext_compileable
Browse files Browse the repository at this point in the history
make ewext compileable on old systems UPD: added as feature flag
  • Loading branch information
IntQuant authored Dec 4, 2024
2 parents 1ac8c98 + 86338e4 commit 6a1bd33
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ewext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ iced-x86 = "1.21.0"
noita_api_macro = {path = "noita_api_macro"}
eyre = "0.6.12"
noita_api = {path = "noita_api"}
shared = {path = "../shared"}
tungstenite = "0.24.0"
bitcode = "0.6.3"
shared = {path = "../shared"}

[features]
#enables cross-compilation on older systems (for example, when compiling on ubuntu 20.04)
#due to unresolved bug in rust toolchain
#https://github.com/rust-lang/rust/issues/79609
pre2204 = []
4 changes: 4 additions & 0 deletions ewext/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[cfg(feature = "pre2204")]
#[no_mangle]
pub extern "C" fn _Unwind_Resume() {}

use std::{
arch::asm,
cell::{LazyCell, RefCell},
Expand Down

0 comments on commit 6a1bd33

Please sign in to comment.