mirror of
https://github.com/Z3Prover/z3
synced 2026-07-14 19:15:41 +00:00
Fix missing std headers in singlethread WASM wrapper
The makeCCSinglethreadWrapper() function generates a C++ file that uses SHARED_ERROR_HANDLERS (which references std::exception and std::string). The singlethread wrapper only included <emscripten.h> and ../../z3.h, missing <stdexcept> and <string>. The threaded wrapper gets those transitively through <thread>, but the singlethread wrapper does not include <thread>. Add the two missing includes to fix the build.
This commit is contained in:
parent
8c80fe9440
commit
1faba5c769
1 changed files with 3 additions and 0 deletions
|
|
@ -304,6 +304,9 @@ extern "C" void async_${fn.name}(${paramList}) {
|
|||
return `// THIS FILE IS AUTOMATICALLY GENERATED BY ${path.basename(__filename)}
|
||||
// DO NOT EDIT IT BY HAND
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
#include <emscripten.h>
|
||||
|
||||
#include "../../z3.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue