2
0
Fork 0
mirror of https://github.com/bazelbuild/platforms synced 2024-12-01 19:15:22 +00:00
Commit graph

93 commits

Author SHA1 Message Date
Copybara-Service 090d3b11a8 Merge pull request #22 from thii:make-aarch64-an-alias-of-arm64
PiperOrigin-RevId: 351576276
Change-Id: Ic0762734766d63a716b3e2cab0c42bab993a76a3
2021-01-13 06:51:36 -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 540032531b Merge pull request #21 from aiuto:update
PiperOrigin-RevId: 346090354
Change-Id: I699f5aef7657a45241d30c4f1c93719d68d3f802
2020-12-07 07:43:44 -08:00
aiuto d4271e9dac
Merge branch 'master' into update 2020-12-07 10:17:20 -05:00
Copybara-Service 68803edf50 Merge pull request #21 from aiuto:update
PiperOrigin-RevId: 346050578
Change-Id: Iff27708f9cbb77a5de4a8f1d529f4e3aa53f5a5f
2020-12-07 02:52:59 -08:00
Tony Aiuto 9a7e0680ae typo; 2020-12-04 20:11:58 -05:00
Tony Aiuto db9d0ee2c0 caps 2020-12-04 14:47:55 -05:00
Tony Aiuto 18f2d86282 reality_bites 2020-12-04 13:02:31 -05:00
Tony Aiuto ae00b7ec5d add bazel notes 2020-12-04 13:01:20 -05:00
Tony Aiuto 3e981de178 refine it a bit 2020-12-03 23:55:23 -05:00
Tony Aiuto 7a84ee3183 Merge remote-tracking branch 'origin/update' into update 2020-12-03 23:40:11 -05:00
aiuto 0689aab2e1 first draft releaser script 2020-12-03 23:39:17 -05:00
Copybara-Service 10b4d2bdde Merge pull request #20 from philsc:not-compatible
PiperOrigin-RevId: 343286570
Change-Id: I1bb23135d8114c6189cc1d753b570da9416c505d
2020-11-19 07:32:03 -08:00
Philipp Schrader 1e362cd247 Add an "incompatible" constraint value
The bazel docs [1] currently recommend users to create an
`incompatible` constraint in their own code base. This constraint is
useful in expressing more advanced target compatibilities.

Currently every project has to create their own definition for this
constraint. That is unnecessary proliferation of something that can be
easily centralized here.

This patch makes it so users will be able to use the following pattern
in their BUILD files:

    cc_library(
        name = "unixish_lib",
        srcs = "unixish_lib.cc",
        target_compatible_with = select({
            "@platforms//os:osx": [],
            "@platforms//os:linux": [],
            "//conditions:default": ["@platforms//:incompatible"],
        ],
    )

[1]: https://docs.bazel.build/versions/master/platforms.html#skipping-incompatible-targets
2020-11-18 19:45:44 -08:00
Copybara-Service 228d7d560d Merge pull request #19 from PiotrSikora:wasi
PiperOrigin-RevId: 340987756
Change-Id: I9055ddb0b3b8f21b4c1419c511055e0330943a00
2020-11-05 22:04:57 -08: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
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
Copybara-Service 7caa0ac1d3 Merge pull request #16 from katre:add-authors
PiperOrigin-RevId: 330714482
Change-Id: I5cef813fc6125534cc7d5e1cd1baad5dd19a3115
2020-09-09 07:00:48 -07:00
John Cater 5164f2c0ba Update language 2020-09-02 15:55:33 -04:00
John Cater 14b9cf416e Add AUTHORS file to clarify copyright and ownership.
Fixes #14.
2020-09-02 10:54:49 -04:00
Copybara-Service 681f1ee032 Merge pull request #12 from lizan:wasm
PiperOrigin-RevId: 314539311
Change-Id: I78e13c6887bccf28a2d63760176519eed7cfd2ac
2020-06-03 08:53:13 -07:00
Lizan Zhou 966defdc80 add wasm cpu
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
2020-05-01 14:56:52 -07:00
Copybara-Service 9ded0f9c31 Merge pull request #10 from mboes:nixos
PiperOrigin-RevId: 307386813
Change-Id: Ie9c7f1ac31543503b67b91b65ccbc6940cf3651f
2020-04-20 06:30:01 -07: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
Copybara-Service 46993efdd3 Merge pull request #8 from x1ddos:patch-1
PiperOrigin-RevId: 279293049
Change-Id: I475bad63cb23f87067acd3d5e77d26759599da93
2019-11-08 05:17:30 -08: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 142b8b2dfc Add presubmit for bazel_platforms.
PiperOrigin-RevId: 252795457
Change-Id: Ic76fe0b020cc87710e34e308f44f973f5175b258
2019-06-12 03:54:54 -07:00
Copybara-Service 4cf1bc5f11 Merge pull request #4 from bazelbuild:hlopko-patch-1
PiperOrigin-RevId: 252771298
Change-Id: Ia5588f607a2eb15ac631ca479363a847db0ef0a4
2019-06-12 00:25:35 -07:00
Marcel Hlopko e049718084
Testing copybara 2019-06-12 09:17:05 +02:00
Googler 441afe1bfd This target will be used by Bazel to embed a release of 'platforms' into
the Bazel binary itself.

Progress towards bazelbuild/bazel#8596

RELNOTES: None.
PiperOrigin-RevId: 252619499
Change-Id: I4049f8d5752f9dddc8ad7669db4754c8fb069965
2019-06-11 17:13:18 +02: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
Googler 55fc545818 Internal change
PiperOrigin-RevId: 251636029
Change-Id: Idef5972b0d729bd723550905d224eadcfb583516
2019-06-11 17:12:22 +02:00
Florian Weikert fe6dc1efb6 Initial empty repository 2019-06-04 14:51:02 +00:00