Makefile: fix LLVM tools detection for wasi-libc

This makes the `make wasi-libc` command much more reliable and makes the
CI configuration simpler. Also, it avoids warnings when they are not
relevant.
This commit is contained in:
Ayke van Laethem
2020-02-27 16:58:41 +01:00
committed by Ayke
parent 6896b0014b
commit 978a0cd9b0
3 changed files with 22 additions and 22 deletions
+6 -6
View File
@@ -53,12 +53,12 @@ commands:
steps:
- restore_cache:
keys:
- wasi-libc-sysroot-v0
- wasi-libc-sysroot-v1
- run:
name: "Build wasi-libc"
command: make wasi-libc CLANG=$PWD/llvm-build/bin/clang LLVM_AR=$PWD/llvm-build/bin/llvm-ar LLVM_NM=$PWD/llvm-build/bin/llvm-nm
command: make wasi-libc
- save_cache:
key: wasi-libc-sysroot-v0
key: wasi-libc-sysroot-v1
paths:
- lib/wasi-libc/sysroot
test-linux:
@@ -266,12 +266,12 @@ commands:
llvm-build
- restore_cache:
keys:
- wasi-libc-sysroot-macos-v0
- wasi-libc-sysroot-macos-v1
- run:
name: "Build wasi-libc"
command: make wasi-libc CLANG=$PWD/llvm-build/bin/clang LLVM_AR=$PWD/llvm-build/bin/llvm-ar LLVM_NM=$PWD/llvm-build/bin/llvm-nm
command: make wasi-libc
- save_cache:
key: wasi-libc-sysroot-macos-v0
key: wasi-libc-sysroot-macos-v1
paths:
- lib/wasi-libc/sysroot
- run: