wasmer-compiler 7.4.2

Base compiler abstraction for Wasmer WebAssembly runtime
1
2
3
4
5
6
7
8
9
10
11
#include <stdbool.h>
#include <stddef.h>

// Rust does not support weak imports on stable. A weak reference lets the final
// link select the unwinder, including in static executables without dlsym.
// Do not define a fallback symbol or force an unwinder library into the link.
extern void __unw_add_dynamic_fde(void*) __attribute__((weak));

__attribute__((visibility("hidden"))) bool wasmer_using_libunwind(void) {
  return __unw_add_dynamic_fde != NULL;
}