Skip to content

Commit

Permalink
WASM: Include ABI file to make the home search work.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Nov 29, 2024
1 parent 3c7fd22 commit 2ab2713
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/EmscriptenTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ set_target_properties(swipl PROPERTIES
# link the resource file into the main executable.

set(WASM_BOOT_FILE "${WASM_PRELOAD_DIR}/boot.prc")
set(WASM_ABI_FILE "${WASM_PRELOAD_DIR}/ABI")
add_custom_command(
OUTPUT ${WASM_BOOT_FILE}
COMMAND ${CMAKE_COMMAND} -E make_directory ${WASM_PRELOAD_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${SWIPL_BOOT_FILE} ${WASM_BOOT_FILE}
COMMAND ${CMAKE_COMMAND} -E copy ${SWIPL_ABI_FILE} ${WASM_ABI_FILE}
COMMAND ${CMAKE_COMMAND} -E copy_directory
${SWIPL_BUILD_LIBRARY} ${WASM_PRELOAD_DIR}/library
DEPENDS ${SWIPL_BOOT_FILE} prolog_home library_index
Expand Down

0 comments on commit 2ab2713

Please sign in to comment.