Skip to content

Commit

Permalink
Add a host platform definition.
Browse files Browse the repository at this point in the history
Part of bazelbuild#2219.

Change-Id: Ia559d0770cbe82baca3f3259018a851a4cf30f22
  • Loading branch information
katre committed Apr 28, 2017
1 parent eeabb18 commit 1a832bc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tools/platforms/platforms.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,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,
)

0 comments on commit 1a832bc

Please sign in to comment.