mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
checkout_isl: Do not fail in presence of an old CLooG checkout
This should help our buildbots and may also simplify life for other people. llvm-svn: 223152
This commit is contained in:
parent
6f1e96b437
commit
4a69bea6c2
@ -39,7 +39,19 @@ check_isl_directory() {
|
||||
IS_GIT=0
|
||||
else
|
||||
echo ":: Existing git repo found"
|
||||
IS_GIT=1
|
||||
|
||||
git log cc726006058136865f8c2f496d3df57b9f937ea5 2> /dev/null > /dev/null
|
||||
OUT=$?
|
||||
if [ $OUT -eq 0 ];then
|
||||
echo ":: ISL repository found!"
|
||||
IS_GIT=1
|
||||
else
|
||||
echo ":: Unknown repository found (CLooG?)!"
|
||||
echo ":: Moving it to ${ISL_DIR}_old"
|
||||
run mv ${ISL_DIR} ${ISL_DIR}_old
|
||||
run mkdir ${ISL_DIR}
|
||||
IS_GIT=0
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user