mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-05 21:35:55 +00:00
improve the wasm check
This commit is contained in:
parent
6c7377e299
commit
8681b0ebb1
6
debian/qualify-clang.sh
vendored
6
debian/qualify-clang.sh
vendored
@ -1366,6 +1366,12 @@ if dpkg -l|grep -q wasi-libc; then
|
||||
}
|
||||
EOF
|
||||
clang-$VERSION -target wasm32-unknown-wasi -o printf printf.c
|
||||
file printf &> foo.log
|
||||
if ! grep -q "WebAssembly" foo.log; then
|
||||
echo "the generated file isn't a WebAssembly file?"
|
||||
exit 1
|
||||
fi
|
||||
rm -f printf.c printf
|
||||
fi
|
||||
|
||||
echo '
|
||||
|
Loading…
Reference in New Issue
Block a user