Say "wasm32-wasi" instead of "wasm32-unknown-wasi" in wasi-sdk.

pull/26/head
Dan Gohman 6 years ago
parent 3f6c4f83a3
commit 38cc8a607c

@ -21,7 +21,7 @@ build/llvm.BUILT:
-DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=$(PREFIX) \ -DCMAKE_INSTALL_PREFIX=$(PREFIX) \
-DLLVM_TARGETS_TO_BUILD=WebAssembly \ -DLLVM_TARGETS_TO_BUILD=WebAssembly \
-DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-unknown-wasi \ -DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasi \
-DLLVM_EXTERNAL_CLANG_SOURCE_DIR=$(LLVM_PROJ_DIR)/clang \ -DLLVM_EXTERNAL_CLANG_SOURCE_DIR=$(LLVM_PROJ_DIR)/clang \
-DLLVM_EXTERNAL_LLD_SOURCE_DIR=$(LLVM_PROJ_DIR)/lld \ -DLLVM_EXTERNAL_LLD_SOURCE_DIR=$(LLVM_PROJ_DIR)/lld \
-DLLVM_ENABLE_PROJECTS="lld;clang" \ -DLLVM_ENABLE_PROJECTS="lld;clang" \

@ -19,7 +19,7 @@ builds configured to set the default target and sysroot for convenience.
One could also use a standard Clang 8.0, build a sysroot from the sources One could also use a standard Clang 8.0, build a sysroot from the sources
mentioned above, and compile with mentioned above, and compile with
"--target=wasm32-unknown-wasi --sysroot=/path/to/sysroot". "--target=wasm32-wasi --sysroot=/path/to/sysroot".
## Notes for Autoconf ## Notes for Autoconf

@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.4.0)
set(CMAKE_SYSTEM_NAME Wasm) set(CMAKE_SYSTEM_NAME Wasm)
set(CMAKE_SYSTEM_VERSION 1) set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR wasm32) set(CMAKE_SYSTEM_PROCESSOR wasm32)
set(triple wasm32-unknown-wasi) set(triple wasm32-wasi)
set(CMAKE_C_COMPILER ${WASI_SDK_PREFIX}/bin/clang) set(CMAKE_C_COMPILER ${WASI_SDK_PREFIX}/bin/clang)
set(CMAKE_CXX_COMPILER ${WASI_SDK_PREFIX}/bin/clang++) set(CMAKE_CXX_COMPILER ${WASI_SDK_PREFIX}/bin/clang++)

Loading…
Cancel
Save