3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-11 21:02:32 +00:00

Upgrade to WASI SDK 33 and enable exceptions

This commit is contained in:
bin 2026-05-01 13:26:28 -04:00
parent 18b832247b
commit 5dfe1937a0
5 changed files with 14 additions and 20 deletions

View file

@ -144,19 +144,6 @@ int yosys_history_offset = 0;
std::string yosys_history_file;
#endif
#if defined(__wasm)
extern "C" {
// FIXME: WASI does not currently support exceptions.
void* __cxa_allocate_exception(size_t thrown_size) throw() {
return malloc(thrown_size);
}
bool __cxa_uncaught_exception() throw();
void __cxa_throw(void* thrown_exception, struct std::type_info * tinfo, void (*dest)(void*)) {
std::terminate();
}
}
#endif
void yosys_atexit()
{
#if defined(YOSYS_ENABLE_READLINE) || defined(YOSYS_ENABLE_EDITLINE)