Commit Graph

21 Commits

Author SHA1 Message Date
Amari Robinson d3b78bbcf0
Add `uefi` os constraint (#97) 2024-07-25 10:03:19 -04:00
Walter Lee 6b04b816a0
Define constraint for emscripten os (#84)
This is to be used for Web Assembly, with cpus wasm32/wasm64.
2024-01-09 12:32:47 -05:00
mtribiere f55a7d3532
Added VXWorks OS (#70)
Co-authored-by: aiuto <aiuto@google.com>
2023-09-27 16:10:40 -04:00
Tony Aiuto ba032f8c98 Add Apple visionos.
I'm not really satisified with this PR. The number of Apple specific platforms has grown to the point where we may want to refactor them. The question I would focus on is how various toolchain matches and select clauses go.

Do we see things like:

```
foo = select({
  ".../os:linux": A,
  ".../os:windows": B,
  ".../os:macos": C,
  ".../os:watchos": C,
  ".../os:visionos": C,
})
```

Where C is the same for all the apple platforms?

Or, do we see real distinctions across the various per-device OSes. Or a mix of both?
And, do we see the fanout of the Apple OSes done with a select_or wrapper, so users end up seeing the simple selection of just apple, linux, or windows, but we buried complexity elsewhere?
2023-06-26 10:58:38 -04:00
Tony Aiuto 39d94df996 add chromiumos 2022-08-22 13:44:20 -04:00
Estevan Castilho (Tevo) c2ba6e7550 os: add haiku constraint value 2022-05-09 16:07:44 +00:00
Renato Mangini 9e1b2f7b07
os: add fuchsia constraint value 2021-11-09 11:44:49 -07:00
Benny Siegert f01a297c09
os: add netbsd constraint value 2021-09-16 10:22:39 +02:00
Piotr Sikora ed46070dfc os: add WASI (WebAssembly System Interface).
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2020-11-05 19:34:29 +00:00
Mathieu Boespflug f2a26bcef3 os: add NixOS to the constraint values
NixOS uses the Linux kernel, but that's where commonality with the
myriad Linux distributions out there stops. Like the different BSD's,
NixOS is sufficiently different that it warrants a constraint value.
In particular, no non-static binary has any chance of running on NixOS
unless it was specifically built for it, because the dynamic linker is
in a non-standard location. This means that toolchains downloaded as
part of host autoconfiguration that detect Linux (like
`go_register_toolchains()`) always fail on NixOS.

NixOS is a popular operating system used by thousands, one of the most
active projects on all of GitHub, and with more unique packages than
even Debian, Fedora or Gentoo according to https://repology.org/.
2020-04-18 11:09:52 +02:00
Marcel Hlopko 63bcda396d
Merge branch 'master' into patch-1 2019-11-07 09:22:11 +01:00
Googler 19815c2704 BEGIN_PUBLIC
Copybara import of the project:

--
d74a52728a by Naren Dasan <naren@narendasan.com>:

Add QNX as a possible constraint value

Have been using bazel to compile for QNX, would like to see it as a constraint value.

END_PUBLIC

PiperOrigin-RevId: 278626573
Change-Id: If0c7ddbc8f5d26e4d9d43bf19933e901760d1564
2019-11-05 08:03:57 -08:00
Googler 43155b81d4 Add ":macos" alias for ":osx" platform constraint.
PiperOrigin-RevId: 265457506
Change-Id: Ia01ccb0e598126c24b25b9eb9358d587d5430e7a
2019-08-26 08:08:09 -07:00
Austin Schuh 4e6771f8b4 Add OS setting for devices with no OS
PiperOrigin-RevId: 263595168
Change-Id: Ib2d6b6164acdf30f663462cdc9108d2817db6d76
2019-08-15 10:46:45 -07:00
alex 594eeffa57
os: add openbsd to the constraint values
There are notable differences from freebsd such that it warrants a constraint value.
2019-08-09 17:39:40 +02: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 753ad895fe Fix visibility of //os:os
PiperOrigin-RevId: 253832479
Change-Id: I686ac0b6e2e74f37d4ff3361efd4bcd20d81d547
2019-06-18 11:35:42 -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