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

116 commits

Author SHA1 Message Date
Fabian Meumertzheim 1b0d452dcf
Mark extension as reproducible (#92)
* Mark extension as reproducible

* Fix workspace setup
2024-05-16 10:37:16 -04:00
Xùdōng Yáng 05ec3a3df2
Prepare for release 0.0.10 (#91) 2024-04-25 17:46:53 +02:00
Xùdōng Yáng 5074be0702
Add filegroup targets for .bzl files in the host package (#90)
This allows users of e.g. `//host:constraints.bzl` to use Stardoc.
2024-04-25 16:18:48 +02:00
Xùdōng Yáng 2af915c086
Implement local_config_platform in @platforms (#86)
* POC: implement local_config_platform in @platforms

* missing colons

* move stuff around

* the repo rule need not be public

* attempt at a test setup...

* whoops

* newlines

* comments

* more comments
2024-03-21 13:06: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
Ara Nguyen 33a3b209f9
platform_data implementation (#78)
* platform_data implementation
* update doc string for additional clarification
* update doc string
* move BUILD.bazel under experimental/platform_data
* add load statement to example
2023-10-23 08:53:30 -04:00
aiuto dbdf8343cb
Update versions to 0.0.8, tweak release script. (#79)
* add bzlmod stuff to dist

* get ready for version 0.0.8

* fix typo in license dep
2023-10-17 15:49:51 -04:00
Appu 8ff1c11d96
Add ppc64le cpu (#64)
This is a specific cpu variant of ppc64 in little-endian mode.

GOARCH has equivalent: https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63#goarch-values

Debian also builds (though with weird naming): https://wiki.debian.org/ppc64el

It is weird that the other entries here are ppc and ppc32, I would actually expect ppc and ppc64 but 🤷
2023-10-05 11:39:32 -04:00
mtribiere f55a7d3532
Added VXWorks OS (#70)
Co-authored-by: aiuto <aiuto@google.com>
2023-09-27 16:10:40 -04:00
Burak Emir 19d828cf8d
Fix doc links. (#74)
Co-authored-by: aiuto <aiuto@google.com>
2023-09-27 14:53:18 -04:00
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
aiuto 4ad40ef271
Merge pull request #72 from aiuto/r7
Update rules_license deps to current.
2023-07-28 15:44:27 -04:00
Tony Aiuto a72d212c38 update rules_license deps to current 2023-07-28 15:42:26 -04:00
John Cater 1e83c4111c
Merge pull request #71 from aiuto/vos
Add Apple visionos.
2023-07-28 07:01:49 -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
aiuto 7815f135e3
Merge pull request #67 from MaskRay/aarch64
Add :aarch32 :aarch64 and make :arm64 alias for :aarch64
2023-05-17 16:23:33 -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
Yun Peng 1207091988
Merge pull request #65 from bazelbuild/lberki-bazel-dev-archive
Replace bazel-dev with GitHub Discussions.
2023-04-21 16:02:20 +02:00
lberki 4dd1b9ba16
Update README.md
Co-authored-by: Yun Peng <pcloudy@google.com>
2023-04-21 15:20:54 +02:00
Lukacs T. Berki 7c4dcb72f3 Replace bazel-dev with GitHub Discussions. 2023-04-21 13:08:04 +00:00
aiuto 829cd4bc1a
Merge pull request #57 from aiuto/lic
Add rules_license style declaration.
2023-02-09 11:03:33 -05:00
Tony Aiuto c688024aad buildify 2023-02-09 10:56:04 -05:00
Tony Aiuto b1fe119ea4 echo version in the version check 2023-02-09 10:46:46 -05:00
Tony Aiuto ce09fb7f5c - bump dependency on rules_license to 0.0.4
- That picks up version that users cfg=exec instead of cfg=host
  - It still works with bazel 5.x. The next rules_license might not.
- bump our version to 0.0.7 for next release
  - add presubmit check that we did not mistmatch the license
2023-02-09 10:42:00 -05:00
Tony Aiuto 81c2f191d5 sha 2023-01-03 16:25:22 -05:00
Tony Aiuto 59040f1b6d missed load 2022-12-07 16:56:15 -05:00
Tony Aiuto 0176b8dc7b Add rules_license style declaration.
- Done for both WORKSPACE and bzlmod styles
- The dependency is different because rules_license is not
  up to date in the BCR. I'll correct that at the next
  rules_license release.
2022-12-07 16:52:06 -05:00
aiuto 3fbc687756
Merge pull request #52 from aiuto/arms
Add cortex-r52 r82 cpus
2022-11-09 14:18:22 -05: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
aiuto f0f4da7036
Merge pull request #51 from comius/extend-cpus-and-oses
Add Cortex-R52, PPC32 cpus
2022-11-04 13:05:11 -04:00
Ivo List fe0c0c4bf2 remove empty line 2022-11-04 15:59:35 +01:00
Ivo List 4083b7ef14 Removing trusty and asylo 2022-11-04 15:58:10 +01:00
Ivo List 91e04af626 Add Corted-R52, PPC32 cpus and trusty, asylo oses. 2022-11-02 17:29:06 +01:00
aiuto d9296d956d
Merge pull request #50 from aiuto/bzlmod
Add MODULE.bzl
2022-10-20 16:47:18 -04:00
Tony Aiuto fda158ac99 pull up tests 2022-10-19 15:04:29 -04:00
Tony Aiuto 5708c0d48b pull up tests 2022-10-19 14:59:10 -04:00
Tony Aiuto bb634db2ea colon 2022-10-19 13:33:03 -04:00
Tony Aiuto 37cb950983 yaml_is_a-mistake 2022-10-19 13:08:32 -04:00
Tony Aiuto aaabf405ee dash2 2022-10-19 13:05:59 -04:00
Tony Aiuto 9ec9d05f9d dash 2022-10-19 13:03:54 -04:00
Tony Aiuto b07f6b2582 use newer flag 2022-10-19 13:00:57 -04:00
Tony Aiuto ae155b604c Add MODULE.bzl 2022-10-19 12:12:46 -04:00
aiuto 212a486d66
Merge pull request #46 from aiuto/makerel
Improve the helper script to make a platforms release
2022-09-06 20:20:16 -04:00
Tony Aiuto 6a6ab58314 improve the helper script to make a platforms release 2022-08-26 15:35:15 -04:00
aiuto 380c85cc2c
Merge pull request #45 from aiuto/crhm
Add chromiumos
2022-08-23 15:55:36 -04:00
Tony Aiuto 2f75a269e5 revert file accidentally pulled in 2022-08-22 14:41:58 -04:00
Tony Aiuto 39d94df996 add chromiumos 2022-08-22 13:44:20 -04:00
Tony Aiuto 34e7b8a3a5 Add instructions for mirroring and updating Bazel to the release script. 2022-08-22 13:42:53 -04:00