Skip to content

Commit 91093e6

Browse files
committed
Add installation rule for Emscripten builds to copy cxx.wasm to bin
Signed-off-by: Roberto Raggi <[email protected]>
1 parent 6b14d61 commit 91093e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/frontend/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ if (CXX_INSTALL_TOOLS)
6060
TARGETS cxx
6161
EXPORT cxxTargets
6262
)
63+
64+
if (EMSCRIPTEN)
65+
install(
66+
FILES $<TARGET_FILE_DIR:cxx>/cxx.wasm
67+
DESTINATION bin
68+
)
69+
endif()
70+
6371
endif()
6472

6573
add_custom_target(link_cxx_include ALL

0 commit comments

Comments
 (0)