aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar jcater <jcater@google.com>2017-05-30 17:58:06 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-05-31 09:18:45 +0200
commita4d98591b9b9f6485523df3068063659004302ab (patch)
tree6ca7cd5dd57c132c19b6485ee966a246af25c14c /tools
parent118cbe1a05b905a2c3ce9bafbe6f3d7f0c284d82 (diff)
Add host platform definition that internal code can depend on.
Part of #2219. PiperOrigin-RevId: 157469326
Diffstat (limited to 'tools')
-rw-r--r--tools/platforms/platforms.BUILD20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/platforms/platforms.BUILD b/tools/platforms/platforms.BUILD
index 4e477e72a8..5506f28387 100644
--- a/tools/platforms/platforms.BUILD
+++ b/tools/platforms/platforms.BUILD
@@ -54,3 +54,23 @@ constraint_value(
name = "windows",
constraint_setting = ":os",
)
+
+# A default platform referring to the host system. This only exists for
+# internal build configurations, and so can't be accessed by other packages.
+platform(
+ name = "host_platform",
+ host_cpu_constraints = [
+ ":x86_32",
+ ":x86_64",
+ ":ppc",
+ ":arm",
+ ":x390x",
+ ],
+ host_os_constraints = [
+ ":osx",
+ ":freebsd",
+ ":linux",
+ ":windows",
+ ],
+ host_platform = True,
+)