Add missing includes to fix WASI build.
This commit is contained in:
parent
bf5f0fc58f
commit
e1cd98ba15
@ -18,6 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__wasm)
|
#if defined(__wasm)
|
||||||
|
#include <typeinfo>
|
||||||
|
#include <exception>
|
||||||
|
#include "log.h"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// FIXME: WASI does not currently support exceptions.
|
// FIXME: WASI does not currently support exceptions.
|
||||||
void *__cxa_allocate_exception(size_t thrown_size) throw() { return malloc(thrown_size); }
|
void *__cxa_allocate_exception(size_t thrown_size) throw() { return malloc(thrown_size); }
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#define NEXTPNR_ASSERTIONS_H
|
#define NEXTPNR_ASSERTIONS_H
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include "nextpnr_namespaces.h"
|
#include "nextpnr_namespaces.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user