Skip to content

Commit 7c5bd3c

Browse files
committed
fix rust-wasm.sh
1 parent 9b3e68d commit 7c5bd3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-wasm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ BASENAME="${1%.rs}"
1515
INPUT="${BASENAME}.rs"
1616

1717
if [ ! -f "${INPUT}" ]; then
18-
echo "File not found: ${INPUT}"
18+
echo "File not found: ${INPUT}"
19+
exit 2
1920
fi
2021

2122
rustc -O --crate-type=lib --emit=llvm-bc -C opt-level=3 "${INPUT}" && \

0 commit comments

Comments
 (0)