Skip to content

Commit

Permalink
WASM test as .html
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Mar 22, 2024
1 parent 0d76d7f commit a1bae08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@
/enc_temp_folder
/cpm-cache
/old

emsdk
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ add_executable(test "test.cpp")
target_link_libraries(test PRIVATE FastSIMD test_simd)

if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
target_link_options(test PRIVATE -sALLOW_MEMORY_GROWTH=1)
set(CMAKE_EXECUTABLE_SUFFIX ".html")
target_link_options(test PRIVATE -sALLOW_MEMORY_GROWTH=1 -sSINGLE_FILE)
endif()

# Enable Warnings
Expand Down

0 comments on commit a1bae08

Please sign in to comment.