mirror of
https://github.com/tpoechtrager/osxcross.git
synced 2024-09-11 16:55:34 +03:00
Remove existing compiler-rt directory if it is not a build project.
This commit is contained in:
parent
564e2b9aa8
commit
12f179126d
@ -81,6 +81,12 @@ export OSXCROSS_NO_10_5_DEPRECATION_WARNING=1
|
||||
|
||||
pushd $BUILD_DIR &>/dev/null
|
||||
|
||||
# Check if a build project for compiler-rt already exists.
|
||||
# Delete any directory that is called compiler-rt, but is not a build project.
|
||||
if [ -d "$BUILD_DIR/compiler-rt" ] && [ ! -d "$BUILD_DIR/compiler_rt/compiler-rt" ]; then
|
||||
rm -rf "$BUILD_DIR/compiler-rt"
|
||||
fi
|
||||
|
||||
get_sources https://github.com/llvm/llvm-project.git $BRANCH "compiler-rt"
|
||||
|
||||
if [ $f_res -eq 1 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user