If constructed llvm_build_dir doesn't exist, retry as an iphoneos path.

llvm-svn: 230130
This commit is contained in:
Jason Molenda 2015-02-21 06:13:51 +00:00
parent d5ab35f265
commit 1bffef3b29
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ if not os.path.isdir(target_dir):
print target_dir + " doesn't exist"
sys.exit(1)
if not os.path.isdir(llvm_build_dir):
llvm_build_dir = re.sub ("-macosx-", "-iphoneos-", llvm_build_dir)
if not os.path.isdir(llvm_build_dir):
print llvm_build_dir + " doesn't exist"
sys.exit(1)