diff options
author | 2017-05-30 17:58:06 +0200 | |
---|---|---|
committer | 2017-05-31 09:18:45 +0200 | |
commit | a4d98591b9b9f6485523df3068063659004302ab (patch) | |
tree | 6ca7cd5dd57c132c19b6485ee966a246af25c14c /tools/platforms | |
parent | 118cbe1a05b905a2c3ce9bafbe6f3d7f0c284d82 (diff) |
Add host platform definition that internal code can depend on.
Part of #2219.
PiperOrigin-RevId: 157469326
Diffstat (limited to 'tools/platforms')
-rw-r--r-- | tools/platforms/platforms.BUILD | 20 |
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, +) |