Commit 2c12a85
committed
feat(repo_utils.arch): use
Available in Bazel 5.1.1+, it exposes the JVM `os.arch` string as lower case.
When available this allows avoiding execution of `uname`.
There _could_ be a possibility of `rctx.os.arch` not aligning with `uname -m` in all cases.
For the common CPU architectures, it does.
If there are cases where it diverges, new aliases can be added to align.rctx.os.arch where available1 parent 814beca commit 2c12a85
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
| |||
0 commit comments