Author: enrico
Date: Thu Sep 22 12:59:58 2016
New Revision: 282179

URL: http://llvm.org/viewvc/llvm-project?rev=282179&view=rev
Log:
Actually, do it this way because I will want to know if I am in a host build 
elsewhere too


Modified:
    lldb/trunk/scripts/Xcode/lldbbuild.py

Modified: lldb/trunk/scripts/Xcode/lldbbuild.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Xcode/lldbbuild.py?rev=282179&r1=282178&r2=282179&view=diff
==============================================================================
--- lldb/trunk/scripts/Xcode/lldbbuild.py (original)
+++ lldb/trunk/scripts/Xcode/lldbbuild.py Thu Sep 22 12:59:58 2016
@@ -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')


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to