Say "wasm32-wasi" rather than "wasm32-unknown-wasi".

This commit is contained in:
Dan Gohman 2019-04-28 17:05:24 -07:00
parent 401012952d
commit 9f103c2883
3 changed files with 6 additions and 6 deletions

View File

@ -153,9 +153,9 @@ LIBC_TOP_HALF_ALL_SOURCES = \
$(LIBC_TOP_HALF_MUSL_SOURCES) \ $(LIBC_TOP_HALF_MUSL_SOURCES) \
$(shell find $(LIBC_TOP_HALF_SOURCES) -name \*.c) $(shell find $(LIBC_TOP_HALF_SOURCES) -name \*.c)
# Set the target variables. The multiarch triple is the same as the # Set the target variables. Multiarch triples notably omit the vendor
# regular triple for wasm, except that it excludes the vendor field. # field, which happens to be what we do for the main target triple too.
TARGET_TRIPLE = wasm32-unknown-wasi TARGET_TRIPLE = wasm32-wasi
MULTIARCH_TRIPLE = wasm32-wasi MULTIARCH_TRIPLE = wasm32-wasi
# These variables describe the locations of various files and # These variables describe the locations of various files and

View File

@ -8,8 +8,8 @@ aren't stable yet.
It's several things. It's several things.
First, it's a usable libc. It builds a "sysroot" which can be pointed to by First, it's a usable libc. It builds a "sysroot" which can be pointed to by
compilers, such as Clang 8.0, using the wasm32-unknown-wasi target triple. compilers, such as Clang 8.0, using the wasm32-wasi target. It's a work in
It's a work in progress, but it is already sufficient to run basic programs. progress, but it is already sufficient to run basic programs.
Second, it's a "reference" implementation, which means the interfaces defined Second, it's a "reference" implementation, which means the interfaces defined
here can be used by other tools and libraries, even if they don't use all the here can be used by other tools and libraries, even if they don't use all the

View File

@ -35,7 +35,7 @@ _Noreturn void longjmp (jmp_buf, int);
#define setjmp setjmp #define setjmp setjmp
#else #else
#warning setjmp is not yet implemented for wasm32-unknown-wasi #warning setjmp is not yet implemented for WASI
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus