mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Try to enable exception catching in JS; see #1122
This commit is contained in:
@@ -1211,7 +1211,7 @@ if (COOLPROP_JAVASCRIPT_MODULE)
|
||||
add_definitions(-s DISABLE_EXCEPTION_CATCHING=0)
|
||||
add_definitions(-s ASSERTIONS=1)
|
||||
add_definitions(--bind)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "--bind --memory-init-file 1 -s ASSERTIONS=1 ")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "--bind --memory-init-file 1 -s ASSERTIONS=1 -s DISABLE_EXCEPTION_CATCHING=0 ")
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
|
||||
list(APPEND APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/CoolPropLib.cpp")
|
||||
|
||||
Reference in New Issue
Block a user