CI updates
This commit is contained in:
@@ -576,6 +576,15 @@ void show_sysinfo(const char *options_var) {
|
||||
#if defined(__mips_soft_float)
|
||||
cf_print("__mips_soft_float", "%lld", __mips_soft_float + 0);
|
||||
#endif
|
||||
#if defined(__wasm__)
|
||||
cf_print("__wasm__", "%lld", __wasm__ + 0);
|
||||
#endif
|
||||
#if defined(__wasm32__)
|
||||
cf_print("__wasm32__", "%lld", __wasm32__ + 0);
|
||||
#endif
|
||||
#if defined(__wasm64__)
|
||||
cf_print("__wasm64__", "%lld", __wasm64__ + 0);
|
||||
#endif
|
||||
|
||||
// OS and libc
|
||||
#if defined(WINVER)
|
||||
@@ -604,6 +613,9 @@ void show_sysinfo(const char *options_var) {
|
||||
#if defined(__GLIBC_MINOR__)
|
||||
cf_print("__GLIBC_MINOR__", "%lld", __GLIBC_MINOR__ + 0);
|
||||
#endif
|
||||
#if defined(__wasi__)
|
||||
cf_print("__wasi__", "%lld", __wasi__ + 0);
|
||||
#endif
|
||||
|
||||
// misc compilation options
|
||||
#if defined(UPX_CONFIG_DISABLE_WSTRICT)
|
||||
|
||||
+8
-3
@@ -970,10 +970,15 @@ TEST_CASE("get_ratio") {
|
||||
// compat
|
||||
**************************************************************************/
|
||||
|
||||
#if defined(__wasi__) // TODO later - wait for wasm/wasi exception handling proposal
|
||||
#if defined(__wasi__) && 1 // TODO later - wait for wasm/wasi exception handling proposal
|
||||
extern "C" {
|
||||
void __cxa_allocate_exception() throw() { std::terminate(); }
|
||||
void __cxa_throw() { std::terminate(); }
|
||||
void *__cxa_allocate_exception(std::size_t thrown_size) throw() { return ::malloc(thrown_size); }
|
||||
void __cxa_throw(void *thrown_exception, /*std::type_info*/ void *tinfo, void (*dest)(void *)) {
|
||||
UNUSED(thrown_exception);
|
||||
UNUSED(tinfo);
|
||||
UNUSED(dest);
|
||||
std::terminate();
|
||||
}
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user