Skip to content

Commit

Permalink
fix: allow WASI adapter to be optional for hosts (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Dec 10, 2024
1 parent f957cd4 commit fb85134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ endif()
set(RUNTIME_FILE "starling-raw.wasm")
set(ADAPTER_FILE "preview1-adapter.wasm")
configure_file("componentize.sh" "${CMAKE_CURRENT_BINARY_DIR}/componentize.sh" @ONLY)
configure_file(${ADAPTER} "${CMAKE_CURRENT_BINARY_DIR}/${ADAPTER_FILE}" COPYONLY)
if(EXISTS ${ADAPTER})
configure_file(${ADAPTER} "${CMAKE_CURRENT_BINARY_DIR}/${ADAPTER_FILE}" COPYONLY)
endif()
configure_file(spin.toml spin.toml COPYONLY)

function(componentize OUTPUT)
Expand Down

0 comments on commit fb85134

Please sign in to comment.