Connect helper C symbols to their static library
This commit adds a `#[link]` annotation to the block defining symbols coming from a native static library that we build and link. This is required by rustc to get symbols to get exported correctly when linking wasmtime into a Rust dynamic library instead of always as an rlib. While I was at it I went ahead and renamed the symbols now that they're no longer in C++ and they're doing setjmp/longjmp and not much else. Closes #3006
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::traphandlers::{tls, Trap, Unwind};
|
||||
use crate::traphandlers::{tls, wasmtime_longjmp, Trap};
|
||||
use std::cell::RefCell;
|
||||
use std::convert::TryInto;
|
||||
use std::io;
|
||||
@@ -99,7 +99,7 @@ unsafe extern "C" fn trap_handler(
|
||||
return true;
|
||||
}
|
||||
info.capture_backtrace(pc);
|
||||
Unwind(jmp_buf)
|
||||
wasmtime_longjmp(jmp_buf)
|
||||
});
|
||||
|
||||
if handled {
|
||||
|
||||
Reference in New Issue
Block a user