Merge pull request #626 from YosysHQ/missing-includes
Add missing includes to fix WASI build
This commit is contained in:
commit
701587241f
@ -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); }
|
||||
|
@ -22,6 +22,7 @@
|
||||
#define NEXTPNR_ASSERTIONS_H
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
#include "nextpnr_namespaces.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user