summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Xcode
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-09-22 17:59:58 +0000
committerEnrico Granata <egranata@apple.com>2016-09-22 17:59:58 +0000
commit5edef42e7f2b2fe7070e59b1540e8b7c2eca3e27 (patch)
treeee799c8c830a98ab9207af8fc2ade9088ee9f77c /lldb/scripts/Xcode
parent9a4a6b260fe0fe0ebc3ff1b265591d52106d68ba (diff)
downloadbcm5719-llvm-5edef42e7f2b2fe7070e59b1540e8b7c2eca3e27.tar.gz
bcm5719-llvm-5edef42e7f2b2fe7070e59b1540e8b7c2eca3e27.zip
Actually, do it this way because I will want to know if I am in a host build elsewhere too
llvm-svn: 282179
Diffstat (limited to 'lldb/scripts/Xcode')
-rw-r--r--lldb/scripts/Xcode/lldbbuild.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/lldb/scripts/Xcode/lldbbuild.py b/lldb/scripts/Xcode/lldbbuild.py
index bfe8951461c..2924c0ec857 100644
--- a/lldb/scripts/Xcode/lldbbuild.py
+++ b/lldb/scripts/Xcode/lldbbuild.py
@@ -33,11 +33,17 @@ def archives_txt():
def expected_package_build_path():
return os.path.abspath(os.path.join(expected_llvm_build_path(), ".."))
-
-def architecture():
+def is_host_build():
rc_project_name = os.environ.get('RC_ProjectName')
if rc_project_name:
- if rc_project_name == 'lldb_host': return 'macosx'
+ if rc_project_name == 'lldb_host': return True
+ return False
+
+def rc_release_target():
+ return os.environ.get('RC_RELEASE', '')
+
+def architecture():
+ if is_host_build(): return 'macosx'
platform_name = os.environ.get('RC_PLATFORM_NAME')
if not platform_name:
platform_name = os.environ.get('PLATFORM_NAME')
OpenPOWER on IntegriCloud