Skip to content

Commit 2920cec

Browse files
committed
Add a switch to compact the size of WASM modules
Signed-off-by: Mic Bowman <mic.bowman@intel.com>
1 parent f922595 commit 2920cec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ LIST(APPEND CMAKE_MODULE_PATH "${PDO_SOURCE_ROOT}/contracts/wawaka")
2424
INCLUDE(contract-build)
2525
INCLUDE(wawaka_common)
2626

27+
# This switch is not necessary in general. However, it is
28+
# extremely helpful for reducing the size of large contracts
29+
LIST(APPEND WASM_LINK_OPTIONS "-Wl,--strip-all")
30+
2731
LIST(APPEND WASM_LIBRARIES ${WW_COMMON_LIB})
2832
LIST(APPEND WASM_INCLUDES ${WW_COMMON_INCLUDES})
2933

0 commit comments

Comments
 (0)