Fixes for run_lit.sh

- new build directory layout
- build NPCOMPNativePyExt, now that lit tests use it
pull/51/head
Sean Silva 2020-09-17 15:35:47 -07:00
parent 361abebb51
commit 7486befffd
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ set -e
td="$(realpath $(dirname $0)/..)"
build_dir="$td/build"
install_mlir="$td/install-mlir"
build_mlir="$td/build-mlir"
build_mlir="$td/external/llvm-project/build"
lit_exe="$build_mlir/bin/llvm-lit"
if ! [ -f "$lit_exe" ]; then
@ -33,5 +33,5 @@ done
set -x
cd $build_dir
ninja npcomp-opt npcomp-run-mlir NPCOMPCompilerRuntimeShlib
ninja npcomp-opt npcomp-run-mlir NPCOMPCompilerRuntimeShlib NPCOMPNativePyExt
cd test && python3 "$lit_exe" ${lit_args[@]}