Skip to content

Commit 2a8399f

Browse files
chore: Switched to using MODULARIZE=1 for the Emscripten build process
1 parent 61e4667 commit 2a8399f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Next (V1.x.x)
22
---------------------
33

4+
V1.1.3
5+
---------------------
6+
- Switched to using MODULARIZE=1 for the Emscripten build process. The library is now initialized via a factory function.
7+
48
V1.1.2
59
---------------------
610
- EMSCRIPTEN: Wasm file is now embedded in the cardano-c.js file.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
VERSION_MAJOR=1
22
VERSION_MINOR=1
3-
VERSION_PATCH=2
3+
VERSION_PATCH=3

lib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ ELSE()
186186
SET_TARGET_PROPERTIES(${LIB_OUTPUT_NAME} PROPERTIES
187187
OUTPUT_NAME "${LIB_JS_OUTPUT_NAME}"
188188
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
189-
LINK_FLAGS "-s EXPORT_ALL=1 -s ALLOW_MEMORY_GROWTH=1 --no-entry --whole-archive -s SINGLE_FILE=1 -s ENVIRONMENT=web,node ${EMS_BUILD_FLAGS}"
189+
LINK_FLAGS "-s EXPORT_ALL=1 -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 --no-entry --whole-archive -s SINGLE_FILE=1 -s ENVIRONMENT=web,node ${EMS_BUILD_FLAGS}"
190190
)
191191
ENDIF()
192192

0 commit comments

Comments
 (0)