2
0
Fork 0
mirror of https://github.com/bazelbuild/platforms synced 2024-11-28 15:33:39 +00:00
Commit graph

20 commits

Author SHA1 Message Date
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
Fangrui Song 2532b8708e Add :aarch32 :aarch64 and make :arm64 alias for :aarch64
"aarch64" is the perferred name and used prevailingly on Linux.
See https://nickdesaulniers.github.io/blog/2023/03/10/disambiguating-arm/

Apple and Windows platforms unfortunately use "arm64". They can still
use the alias.

While here, add :aarch32 as well.

Close #68
2023-05-16 22:16:10 +00:00
Tony Aiuto de09b0defc remove armv8-r 2022-11-09 14:14:34 -05:00
Tony Aiuto 0f056b51ee comments 2022-11-08 23:48:32 -05:00
Tony Aiuto b04f8d3adc add cortex cpus 2022-11-08 23:33:58 -05:00
Ivo List 91e04af626 Add Corted-R52, PPC32 cpus and trusty, asylo oses. 2022-11-02 17:29:06 +01:00
Chris Frantz 9fd823ec94 Add a riscv32 cpu constraint.
We intend to use this contraint for cpu & compiler selection for the
OpenTitan project.  We are working on creating a riscv32 compiler
configuration in the bazel-embedded project.

Signed-off-by: Chris Frantz <cfrantz@google.com>
2021-07-26 10:47:38 -07:00
Yun Peng b2e9d7a699
Update BUILD 2021-02-17 17:51:44 +01:00
Yun Peng 44d70196ba
Add cpu value riscv64 2021-02-17 17:51:20 +01:00
shanjiantao 6834ce58ba add mips64 cpu 2021-01-20 10:54:21 +08:00
Nathaniel Brough 29bd0fc767 cpu: Adding cortex-m targets 2021-01-14 09:19:24 +08:00
Thi Doãn e20c93258a
Make aarch64 an alias of arm64
On Apple silicon Macs, auto-detected host platform constraints' cpu is
aarch64, but arm64 is used everywhere else. This change ensures that you
will get the same cpu when your target depends on an arm64 or an aarch64
cpu contraint.
2020-12-10 20:14:20 +09:00
Copybara-Service aee75f4429 Merge pull request #17 from QuantamHD:master
PiperOrigin-RevId: 332482715
Change-Id: I7b6f0daf9c1a81e233e3a025a7d6e5ea45422aa4
2020-09-18 10:51:37 -07:00
Ethan Mahintorabi 3f5de2a3b4 Adds armv6-m support to the platforms library.
This is commonly known thumbv6. However, it appears that the name
is split between armv6-m and thumbv6 globally. I choose the arm
notation in order to be consistent with the other arm platforms.
2020-09-15 20:33:02 -07:00
Lizan Zhou 966defdc80 add wasm cpu
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
2020-05-01 14:56:52 -07:00
Googler 6ad3cffd67 Automated rollback of commit 5b8fd3c752.
*** Reason for rollback ***

Roll forward

*** Original change description ***

Automated rollback of commit e50397c444.

*** Reason for rollback ***

Breaks //third_party/arcore/unity/instant_preview/plugin/unity_plugin:unity_plugin_build_test_mac

[]

*** Original change description ***

Add Apple CPU and OS constraint values to bazel_platforms.

RELNOTES: None
PiperOrigin-RevId: 261704277
Change-Id: Id8a263c9258f448d402ae27cdf46576d6c7c8a49
2019-08-05 09:41:04 -07:00
Googler 5b8fd3c752 Automated rollback of commit e50397c444.
*** Reason for rollback ***

Breaks //third_party/arcore/unity/instant_preview/plugin/unity_plugin:unity_plugin_build_test_mac

[]

*** Original change description ***

Add Apple CPU and OS constraint values to bazel_platforms.

RELNOTES: None
PiperOrigin-RevId: 260800549
Change-Id: I30f8caf94eb6fc9bd2fc37ce6c51b76dcd34e98e
2019-07-30 14:51:58 -07:00
Googler e50397c444 Add Apple CPU and OS constraint values to bazel_platforms.
RELNOTES: None
PiperOrigin-RevId: 260771264
Change-Id: I85439e1dbf607bd689d14a7c1d8d8e3762f720be
2019-07-30 12:30:07 -07:00
Googler 5f13869557 Use cpu and os constraints from Bazel platforms repository
https://github.com/bazelbuild/bazel/issues/6516
https://github.com/bazelbuild/bazel/issues/6521

RELNOTES: None.
PiperOrigin-RevId: 253828017
Change-Id: I15f0295e8759357f481984d361977de2deebac13
2019-06-18 11:15:23 -07:00
Googler cab94988cf Import bazelbuild/platforms from GitHub.
- e51978ee25 initial checkin by Tony Aiuto <aiuto@google.com>
  - d91995f1a9 Add CONTRIBUTING.md by Tony Aiuto <aiuto@google.com>

GIT_ORIGIN_REV_ID=d91995f1a9497602a02d11db41a7ffa5551147be

RELNOTES: None.
PiperOrigin-RevId: 251811887
Change-Id: Iadfdbbc9d013343e495067ebf51b1e0ea59e0fe6
2019-06-11 17:12:52 +02:00