From 4ad2a0f3e09c6d0ea7c9e2b84f8fa9ae76a9658a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sun, 31 Mar 2019 16:16:55 -0700 Subject: [PATCH] Update to current wasi-sysroot. This updates wasi-sdk to use the latest version of "wasi-sysroot". This fixes https://github.com/CraneStation/wasmtime/issues/88. --- .gitmodules | 6 +++--- Makefile | 10 +++++----- README.md | 4 ++-- src/reference-sysroot | 1 - src/wasi-sysroot | 1 + 5 files changed, 11 insertions(+), 11 deletions(-) delete mode 160000 src/reference-sysroot create mode 160000 src/wasi-sysroot diff --git a/.gitmodules b/.gitmodules index e5c1753..a96c0c1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "src/llvm-project"] path = src/llvm-project url = https://github.com/llvm/llvm-project -[submodule "src/reference-sysroot"] - path = src/reference-sysroot - url = git@github.com:cranestation/reference-sysroot-wasi +[submodule "src/wasi-sysroot"] + path = src/wasi-sysroot + url = git@github.com:CraneStation/wasi-sysroot diff --git a/Makefile b/Makefile index 4168519..7ce3a04 100644 --- a/Makefile +++ b/Makefile @@ -39,11 +39,11 @@ build/llvm.BUILT: llvm-config touch build/llvm.BUILT -build/reference-sysroot.BUILT: build/llvm.BUILT - make -C $(ROOT_DIR)/src/reference-sysroot \ +build/wasi-sysroot.BUILT: build/llvm.BUILT + make -C $(ROOT_DIR)/src/wasi-sysroot \ WASM_CC=$(PREFIX)/bin/clang \ SYSROOT=$(PREFIX)/share/sysroot - touch build/reference-sysroot.BUILT + touch build/wasi-sysroot.BUILT build/compiler-rt.BUILT: build/llvm.BUILT mkdir -p build/compiler-rt @@ -66,7 +66,7 @@ build/compiler-rt.BUILT: build/llvm.BUILT cp -R $(ROOT_DIR)/build/llvm/lib/clang $(PREFIX)/lib/ touch build/compiler-rt.BUILT -build/libcxx.BUILT: build/llvm.BUILT build/compiler-rt.BUILT build/reference-sysroot.BUILT +build/libcxx.BUILT: build/llvm.BUILT build/compiler-rt.BUILT build/wasi-sysroot.BUILT mkdir -p build/libcxx cd build/libcxx; cmake -G "Unix Makefiles" \ -DCMAKE_TOOLCHAIN_FILE=$(ROOT_DIR)/wasi-sdk.cmake \ @@ -118,7 +118,7 @@ build/libcxxabi.BUILT: build/libcxx.BUILT build/llvm.BUILT mv $(PREFIX)/share/sysroot/lib/libc++abi.a $(PREFIX)/share/sysroot/lib/wasm32-wasi/ touch build/libcxxabi.BUILT -build: build/llvm.BUILT build/reference-sysroot.BUILT build/compiler-rt.BUILT build/libcxxabi.BUILT build/libcxx.BUILT +build: build/llvm.BUILT build/wasi-sysroot.BUILT build/compiler-rt.BUILT build/libcxxabi.BUILT build/libcxx.BUILT strip: build/llvm.BUILT cd $(PREFIX)/bin; strip clang-8 llc lld llvm-ar diff --git a/README.md b/README.md index 7a6df80..79aa327 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ This repository contains no compiler or library code itself; it uses git submodules to pull in the upstream Clang and LLVM tree, as well as the -WASI reference-sysroot tree. +wasi-sysroot tree. The Sysroot portion of this SDK is the -[WASI reference-sysroot](https://github.com/CraneStation/wasi-sysroot). +[wasi-sysroot](https://github.com/CraneStation/wasi-sysroot). Upstream Clang and LLVM 8.0 can compile for WASI out of the box, and WebAssembly support is included in them by default. So, all that's done here is to provide diff --git a/src/reference-sysroot b/src/reference-sysroot deleted file mode 160000 index d5a609f..0000000 --- a/src/reference-sysroot +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d5a609fe63926533e1054e539ba5f2693d51bdf5 diff --git a/src/wasi-sysroot b/src/wasi-sysroot new file mode 160000 index 0000000..320054e --- /dev/null +++ b/src/wasi-sysroot @@ -0,0 +1 @@ +Subproject commit 320054e84f8f2440def3b1c8700cedb8fd697bf8