diff --git a/wasi-sdk.cmake b/wasi-sdk.cmake index 4873f56..2055fbb 100644 --- a/wasi-sdk.cmake +++ b/wasi-sdk.cmake @@ -27,3 +27,6 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +# Don't attempt to link, as the builtins library may not be available yet. +set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)