update README, again
This commit is contained in:
parent
f86bc5a381
commit
f390b882b9
16
README.md
16
README.md
@ -34,6 +34,7 @@ following platforms:
|
|||||||
- `x86_64-linux-gnu.2.28` for `["@platforms//os:linux", "@platforms//cpu:x86_64"]`.
|
- `x86_64-linux-gnu.2.28` for `["@platforms//os:linux", "@platforms//cpu:x86_64"]`.
|
||||||
- `x86_64-macos-gnu` for `["@platforms//os:macos", "@platforms//cpu:x86_64"]`.
|
- `x86_64-macos-gnu` for `["@platforms//os:macos", "@platforms//cpu:x86_64"]`.
|
||||||
|
|
||||||
|
|
||||||
Note that both Go and Bazel naming schemes are accepted. For convenience with
|
Note that both Go and Bazel naming schemes are accepted. For convenience with
|
||||||
Go, the following Go-style toolchain aliases are created:
|
Go, the following Go-style toolchain aliases are created:
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ Go, the following Go-style toolchain aliases are created:
|
|||||||
|`aarch64`|`arm64`|
|
|`aarch64`|`arm64`|
|
||||||
|`macos`|`darwin`|
|
|`macos`|`darwin`|
|
||||||
|
|
||||||
For example, the toolchain `linux_amd64_gnu is aliased to
|
For example, the toolchain `linux_amd64_gnu` is aliased to
|
||||||
`x86_64-linux-gnu.2.28`. To find out which toolchains can be registered or
|
`x86_64-linux-gnu.2.28`. To find out which toolchains can be registered or
|
||||||
used, run:
|
used, run:
|
||||||
|
|
||||||
@ -51,7 +52,7 @@ used, run:
|
|||||||
$ bazel query @zig_sdk//... | sed -En '/.*_toolchain$/ s/.*:(.*)_toolchain$/\1/p'
|
$ bazel query @zig_sdk//... | sed -En '/.*_toolchain$/ s/.*:(.*)_toolchain$/\1/p'
|
||||||
```
|
```
|
||||||
|
|
||||||
Read [#Known Issues](##known-issues) before using.
|
Read [#Known Issues](#known-issues) before using.
|
||||||
|
|
||||||
# Known Issues
|
# Known Issues
|
||||||
|
|
||||||
@ -71,15 +72,15 @@ Task: [ziglang/zig #9485 glibc 2.27 or older: fcntl64 not found, but zig's glibc
|
|||||||
|
|
||||||
Background: when glibc 2.27 or older is selected, it may miss `fcntl64`. A
|
Background: when glibc 2.27 or older is selected, it may miss `fcntl64`. A
|
||||||
workaround is applied for `x86_64`, but not for aarch64. The same workaround
|
workaround is applied for `x86_64`, but not for aarch64. The same workaround
|
||||||
may apply to aarch64, but the author didn't find a need to test or ensure it
|
may apply to aarch64, but the author didn't find a need to test it (yet).
|
||||||
(yet).
|
|
||||||
|
|
||||||
## cgo for darwin (macos)
|
## cgo for darwin (macos)
|
||||||
|
|
||||||
Task: [rules/go #2894 Per-arch_target linker flags](https://github.com/bazelbuild/rules_go/issues/2894)
|
Task: [rules/go #2894 Per-arch_target linker flags](https://github.com/bazelbuild/rules_go/issues/2894)
|
||||||
|
|
||||||
Background: this toolchain needs an extra step to be used for Darwin (macos)
|
Background: until there is a better "global" way (i.e. the task is solved), all
|
||||||
targets. Specifically, one needs to add `gc_linkopts` for every `go_binary`:
|
`go_binary` targets destined for Darwin (macos) need an extra `gc_linkopts`
|
||||||
|
flag:
|
||||||
|
|
||||||
```
|
```
|
||||||
go_binary(
|
go_binary(
|
||||||
@ -91,9 +92,6 @@ go_binary(
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
Until the linked task is resolved, this needs to be done for every `go_binary`
|
|
||||||
that is meant to be compiled to Darwin.
|
|
||||||
|
|
||||||
# Closed issues
|
# Closed issues
|
||||||
|
|
||||||
- [ziglang/zig #9139 zig c++ hanging when compiling in parallel](https://github.com/ziglang/zig/issues/9139) (CLOSED)
|
- [ziglang/zig #9139 zig c++ hanging when compiling in parallel](https://github.com/ziglang/zig/issues/9139) (CLOSED)
|
||||||
|
Loading…
Reference in New Issue
Block a user