mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Merge pull request #2051 from waywardmonkeys/wasm-builds
Allow emscripten builds.
This commit is contained in:
commit
dc94d83c2e
|
@ -254,6 +254,15 @@ elseif (CYGWIN)
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
message(STATUS "Platform: Windows")
|
message(STATUS "Platform: Windows")
|
||||||
list(APPEND Z3_COMPONENT_CXX_DEFINES "-D_WINDOWS")
|
list(APPEND Z3_COMPONENT_CXX_DEFINES "-D_WINDOWS")
|
||||||
|
elseif (EMSCRIPTEN)
|
||||||
|
message(STATUS "Platform: Emscripten")
|
||||||
|
list(APPEND Z3_DEPENDENT_EXTRA_CXX_LINK_FLAGS
|
||||||
|
"-Os"
|
||||||
|
"-s ALLOW_MEMORY_GROWTH=1"
|
||||||
|
"-s ASSERTIONS=0"
|
||||||
|
"-s DISABLE_EXCEPTION_CATCHING=0"
|
||||||
|
"-s ERROR_ON_UNDEFINED_SYMBOLS=1"
|
||||||
|
)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Platform \"${CMAKE_SYSTEM_NAME}\" not recognised")
|
message(FATAL_ERROR "Platform \"${CMAKE_SYSTEM_NAME}\" not recognised")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue