Skip to content

Commit 0bedcd7

Browse files
committed
build: remove unnecessary wasm flags
1 parent 39e114a commit 0bedcd7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/emscripten.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
- name: Build
3737
run: cmake --build buildwasm
3838
- name: Test
39-
run: ctest --test-dir buildwasm
39+
run: ctest --test-dir buildwasm

tests/wasm/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
link_libraries(ada)
2-
add_executable(wasm wasm.cpp)
3-
set_target_properties(wasm PROPERTIES LINK_FLAGS "-Os -s WASM=1 -s ENVIRONMENT=node -s EXPORT_NAME=loadWASM -s MODULARIZE=1 --bind --no-entry")
2+
# Node
3+
add_executable(wasm-node wasm.cpp)
4+
set_target_properties(wasm-node PROPERTIES LINK_FLAGS "-Os -s ENVIRONMENT=node -s EXPORT_NAME=loadWASM -s MODULARIZE=1 --bind")
5+
46
configure_file(test.js.in test.js)
57

68
find_program(NODEJS_BINARY NAMES node nodejs)

0 commit comments

Comments
 (0)