Update for tvos or watchos builds.

llvm-svn: 252234
This commit is contained in:
Jason Molenda 2015-11-05 23:42:18 +00:00
parent 519dc14603
commit 8ee4bff5ed
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ if not os.path.isdir(target_dir):
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):
llvm_build_dir = re.sub ("-iphoneos-", "-appletvos-", llvm_build_dir)
if not os.path.isdir(llvm_build_dir):
llvm_build_dir = re.sub ("-appletvos-", "-watchos-", llvm_build_dir)
if not os.path.isdir(llvm_build_dir):
print llvm_build_dir + " doesn't exist"
sys.exit(1)