mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 10:24:07 +00:00
19 lines
396 B
Bash
Executable File
19 lines
396 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source ../common.sh
|
|
|
|
# First check the C version actually works...
|
|
echo "running C program..."
|
|
rm "./$f.out" || true
|
|
compile_lean_c_backend
|
|
exec_check "./$f.out"
|
|
diff_produced
|
|
|
|
# Then check the LLVM version
|
|
if lean_has_llvm_support; then
|
|
echo "running LLVM program..."
|
|
rm "./$f.out" || true
|
|
compile_lean_llvm_backend
|
|
exec_check "./$f.out"
|
|
diff_produced
|
|
fi
|