@ -40,11 +40,11 @@ build/llvm.BUILT:
llvm-config
llvm-config
touch build/llvm.BUILT
touch build/llvm.BUILT
build/wasi- sysroot .BUILT: build /llvm .BUILT
build/wasi- libc .BUILT: build /llvm .BUILT
make -C $( ROOT_DIR) /src/wasi-sysroot \
make -C $( ROOT_DIR) /src/wasi-libc \
WASM_CC = $( PREFIX) /bin/clang \
WASM_CC = $( PREFIX) /bin/clang \
SYSROOT = $( PREFIX) /share/sysroot
SYSROOT = $( PREFIX) /share/sysroot
touch build/wasi-sysroot .BUILT
touch build/wasi-libc .BUILT
build/compiler-rt.BUILT : build /llvm .BUILT
build/compiler-rt.BUILT : build /llvm .BUILT
mkdir -p build/compiler-rt
mkdir -p build/compiler-rt
@ -67,7 +67,7 @@ build/compiler-rt.BUILT: build/llvm.BUILT
cp -R $( ROOT_DIR) /build/llvm/lib/clang $( PREFIX) /lib/
cp -R $( ROOT_DIR) /build/llvm/lib/clang $( PREFIX) /lib/
touch build/compiler-rt.BUILT
touch build/compiler-rt.BUILT
build/libcxx.BUILT : build /llvm .BUILT build /compiler -rt .BUILT build /wasi -sysroot .BUILT
build/libcxx.BUILT : build /llvm .BUILT build /compiler -rt .BUILT build /wasi -libc .BUILT
mkdir -p build/libcxx
mkdir -p build/libcxx
cd build/libcxx; cmake -G "Unix Makefiles" \
cd build/libcxx; cmake -G "Unix Makefiles" \
-DCMAKE_TOOLCHAIN_FILE= $( ROOT_DIR) /wasi-sdk.cmake \
-DCMAKE_TOOLCHAIN_FILE= $( ROOT_DIR) /wasi-sdk.cmake \
@ -134,7 +134,7 @@ build/config.BUILT:
cp src/config/config.sub src/config/config.guess $( PREFIX) /share/misc
cp src/config/config.sub src/config/config.guess $( PREFIX) /share/misc
touch build/config.BUILT
touch build/config.BUILT
build : build /llvm .BUILT build /wasi -sysroot .BUILT build /compiler -rt .BUILT build /libcxxabi .BUILT build /libcxx .BUILT build /config .BUILT
build : build /llvm .BUILT build /wasi -libc .BUILT build /compiler -rt .BUILT build /libcxxabi .BUILT build /libcxx .BUILT build /config .BUILT
strip : build /llvm .BUILT
strip : build /llvm .BUILT
cd $( PREFIX) /bin; strip clang-8 llc lld llvm-ar
cd $( PREFIX) /bin; strip clang-8 llc lld llvm-ar