mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-18 00:48:31 +00:00
Merge pull request #626 from YosysHQ/missing-includes
Add missing includes to fix WASI build
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user