makefile: when building libc, insist that C compiler works

cmake wont be able to execute the wasm program output by wasi-sdk's
clang
pch/compnerd_cmake_integration
Pat Hickey 5 years ago
parent c24740355d
commit 0f1f908673

@ -58,6 +58,7 @@ build/wasi-libc.BUILT: build/llvm.BUILT
-DCMAKE_AR=$(PREFIX)/bin/ar \
-DCMAKE_NM=$(PREFIX)/bin/nm \
-DCMAKE_C_COMPILER=$(PREFIX)/bin/clang \
-DCMAKE_C_COMPILER_WORKS=YES \
-B build/wasi-libc \
-S $(ROOT_DIR)/src/wasi-libc
touch build/wasi-libc.BUILT

Loading…
Cancel
Save