2
0
Fork 0
mirror of https://github.com/bazelbuild/platforms synced 2024-11-28 15:33:39 +00:00
platforms/cpu
Kyle Moffett 4b2312bc8e
Bazel Platforms: Add //cpu:any constraint value for arch-indep builds (#75)
* Bazel Platforms: Add `//cpu:any` constraint value for arch-indep builds

Some builds are expected to only produce architecture-independent data files,
such as configuration files, database seed data, composited images, or even
some kinds of interpreted scripts (Shell, Python, Perl, etc).

When such a build is being performed, this constraint value may be used to
ensure that architecture-dependent builds cannot be performed (except by way
of another transition).

As a final example, consider building a package of NIC firmware images for
many different NIC models.  The package overall is architecture-independent,
and should be built with `//cpu:any`, then each individual image rule has a
transition to the suitable architecture for that specific NIC model.

* Update BUILD

Changed "any" to "all"

* Update BUILD

Fix comment

---------

Co-authored-by: aiuto <aiuto@google.com>
2023-09-26 10:43:45 -04:00
..
BUILD Bazel Platforms: Add //cpu:any constraint value for arch-indep builds (#75) 2023-09-26 10:43:45 -04:00