Skip to content

Commit a1bae08

Browse files
committed
WASM test as .html
1 parent 0d76d7f commit a1bae08

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@
3636
/enc_temp_folder
3737
/cpm-cache
3838
/old
39+
40+
emsdk

tests/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ add_executable(test "test.cpp")
55
target_link_libraries(test PRIVATE FastSIMD test_simd)
66

77
if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
8-
target_link_options(test PRIVATE -sALLOW_MEMORY_GROWTH=1)
8+
set(CMAKE_EXECUTABLE_SUFFIX ".html")
9+
target_link_options(test PRIVATE -sALLOW_MEMORY_GROWTH=1 -sSINGLE_FILE)
910
endif()
1011

1112
# Enable Warnings

0 commit comments

Comments
 (0)