Skip to content

Commit 048c93c

Browse files
Fixed imex build (#285)
There are 2 issues with the current build: 1. Invalid path to imex-version.txt 2. git apply may faild if the patches are applied in an incorrect order Also, enabled the llvm tests.
1 parent 9094fa6 commit 048c93c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/compile.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ build_llvm() {
129129
git fetch --all
130130
fi
131131

132-
IMEX_HASH=$(cat cmake/imex-version.txt)
132+
IMEX_HASH=$(cat "$PROJECT_DIR/cmake/imex-version.txt")
133133
git checkout ${IMEX_HASH}
134134

135135
cd "$llvm_dir"
136-
find "$mlir_ext_dir/build_tools/patches" -name '*.patch' -exec git apply {} +
136+
find "$mlir_ext_dir/build_tools/patches" -name '*.patch' | sort -V | xargs git apply
137137
fi
138138

139139
cmake -G Ninja llvm -B build \
@@ -149,7 +149,7 @@ build_llvm() {
149149
-DLLVM_LINK_LLVM_DYLIB=$DYN_LINK \
150150
-DLLVM_INCLUDE_RUNTIMES=OFF \
151151
-DLLVM_INCLUDE_EXAMPLES=OFF \
152-
-DLLVM_INCLUDE_TESTS=OFF \
152+
-DLLVM_INCLUDE_TESTS=ON \
153153
-DLLVM_INCLUDE_BENCHMARKS=OFF \
154154
-DLLVM_INCLUDE_DOCS=OFF \
155155
-DLLVM_INSTALL_UTILS=ON \

0 commit comments

Comments
 (0)