aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r--common/nextpnr.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc
index 1229a7df..f8914ea5 100644
--- a/common/nextpnr.cc
+++ b/common/nextpnr.cc
@@ -18,6 +18,10 @@
*/
#if defined(__wasm)
+#include <typeinfo>
+#include <exception>
+#include "log.h"
+
extern "C" {
// FIXME: WASI does not currently support exceptions.
void *__cxa_allocate_exception(size_t thrown_size) throw() { return malloc(thrown_size); }