Refine wamr-sdk build scripts (#801)
Avoid hardcoding the path of wasi-sdk in wamr_toolchain.cmake, allow passing -w [wasi-sdk path] to build_sdk.sh, allow passing OUT_DIR to app-sdk and runtime-sdk, and optimize message information.
This commit is contained in:
@ -24,7 +24,9 @@ endif ()
|
||||
|
||||
include(${CONFIG_PATH})
|
||||
|
||||
set (OUT_DIR "${CMAKE_CURRENT_LIST_DIR}/../out/${WAMR_BUILD_SDK_PROFILE}")
|
||||
if (NOT DEFINED OUT_DIR)
|
||||
set (OUT_DIR "${CMAKE_CURRENT_LIST_DIR}/../out/${WAMR_BUILD_SDK_PROFILE}")
|
||||
endif ()
|
||||
set (RUNTIME_SDK_DIR "${OUT_DIR}/runtime-sdk")
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/../../build-scripts/runtime_lib.cmake)
|
||||
|
||||
Reference in New Issue
Block a user