From 0f1f908673da7d26c4259448deadeedc03c9df1e Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Wed, 22 Jan 2020 20:50:59 -0800 Subject: [PATCH] makefile: when building libc, insist that C compiler works cmake wont be able to execute the wasm program output by wasi-sdk's clang --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 8652d6d..66bb586 100644 --- a/Makefile +++ b/Makefile @@ -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