Skip to content

Correct the llvm version in build script for CPU pipeline #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for arg in "$@"; do
ENABLE_IMEX=true
;;
-l | --dyn)
if [ "$ENABLE_IMEX" ]; then
if [ "$ENABLE_IMEX" = "true" ]; then
echo "IMEX doesn't support dynamical linking of LLVM"
exit 1
fi
Expand Down Expand Up @@ -74,7 +74,7 @@ fi
cd $(dirname "$0")/..
PROJECT_DIR=$PWD

if [ "$ENABLE_IMEX" ]; then
if [ "$ENABLE_IMEX" = "true" ]; then
LLVM_HASH=$(cat cmake/llvm-version-imex.txt)
else
LLVM_HASH=$(cat cmake/llvm-version.txt)
Expand All @@ -83,7 +83,7 @@ fi
load_llvm() {
local run_id

if [ "$ENABLE_IMEX" ]; then
if [ "$ENABLE_IMEX" = "true" ]; then
llvm_version="llvm-${LLVM_HASH}-imex-patched"
else
llvm_version="llvm-${LLVM_HASH}"
Expand Down Expand Up @@ -117,7 +117,7 @@ build_llvm() {

[ "$DYN_LINK" = "OFF" ] && CXX_FLAGS="-fvisibility=hidden"

if [ "$ENABLE_IMEX" ]; then
if [ "$ENABLE_IMEX" = "true" ]; then
# clone IMEX and apply patches
cd ../
if ! [ -d "mlir-extensions" ]; then
Expand Down Expand Up @@ -170,7 +170,7 @@ get_llvm() {
fi

llvm_dir=$PROJECT_DIR/../install/llvm
if [ "$ENABLE_IMEX" ]; then
if [ "$ENABLE_IMEX" = "true" ]; then
llvm_version="llvm-${LLVM_HASH}-imex-patched"
else
llvm_version="llvm-${LLVM_HASH}"
Expand Down