Actually, do it this way because I will want to know if I am in a host build elsewher...
authorEnrico Granata <egranata@apple.com>
Thu, 22 Sep 2016 17:59:58 +0000 (17:59 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 22 Sep 2016 17:59:58 +0000 (17:59 +0000)
llvm-svn: 282179

lldb/scripts/Xcode/lldbbuild.py

index bfe8951..2924c0e 100644 (file)
@@ -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')