From 38cc8a607c40266d32d8ebd28481cfb4be3c521b Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 30 Apr 2019 16:31:48 -0700 Subject: [PATCH] Say "wasm32-wasi" instead of "wasm32-unknown-wasi" in wasi-sdk. --- Makefile | 2 +- README.md | 2 +- wasi-sdk.cmake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f9b8a05..7d80063 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ build/llvm.BUILT: -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=$(PREFIX) \ -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_LLD_SOURCE_DIR=$(LLVM_PROJ_DIR)/lld \ -DLLVM_ENABLE_PROJECTS="lld;clang" \ diff --git a/README.md b/README.md index ebb144f..8b07495 100644 --- a/README.md +++ b/README.md @@ -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 mentioned above, and compile with -"--target=wasm32-unknown-wasi --sysroot=/path/to/sysroot". +"--target=wasm32-wasi --sysroot=/path/to/sysroot". ## Notes for Autoconf diff --git a/wasi-sdk.cmake b/wasi-sdk.cmake index 2153185..abe8650 100644 --- a/wasi-sdk.cmake +++ b/wasi-sdk.cmake @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.4.0) set(CMAKE_SYSTEM_NAME Wasm) set(CMAKE_SYSTEM_VERSION 1) 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_CXX_COMPILER ${WASI_SDK_PREFIX}/bin/clang++)