Add an accessor to get the value of RC_PLATFORM_NAME at build time
authorEnrico Granata <egranata@apple.com>
Fri, 23 Sep 2016 22:30:08 +0000 (22:30 +0000)
committerEnrico Granata <egranata@apple.com>
Fri, 23 Sep 2016 22:30:08 +0000 (22:30 +0000)
llvm-svn: 282310

lldb/scripts/Xcode/lldbbuild.py

index 2924c0e..8496cfa 100644 (file)
@@ -42,6 +42,9 @@ def is_host_build():
 def rc_release_target():
   return os.environ.get('RC_RELEASE', '')
 
+def rc_platform_name():
+  return os.environ.get('RC_PLATFORM_NAME', 'macOS')
+
 def architecture():
     if is_host_build(): return 'macosx'
     platform_name = os.environ.get('RC_PLATFORM_NAME')