You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/scripts
Daniel Martí 55921a06d4 fix building for GOOS=darwin on Go 1.22.0
It seems like building with Go 1.22.0 for GOOS=darwin started
running into some issues with the syscall package's use of ABIInternal
in assembly source code:

    > exec garble build
    [stderr]
    # syscall
    [...].s:16: ABI selector only permitted when compiling runtime, reference was to "runtime.entersyscall"

The error can be reproduced from another platform like GOOS=linux
as long as we have any test that cross-compiles std to GOOS=darwin.
We had crossbuild.txtar which only ensured we covered GOOS=windows
and GOOS=linux, so add a third case to ensure MacOS is covered too.

This will slow down the tests a bit, but is important for the sake
of ensuring that we catch these bugs early, even without MacOS on CI.
In fact, we hadn't caught this earlier for Go 1.22 precisely because
on CI we only tested on Go tip with GOOS=linux, for the sake of speed.

Adding the rest of the package import paths from objabi.allowAsmABIPkgs
to our runtimeAndDeps generated map solves this error.
5 months ago
..
cached_modfiles scripts: start checking google.golang.org/protobuf 1 year ago
bench_literals.go scripts: no need for this directory to be a Go package 1 year ago
check-third-party.sh scripts: remove TODO about building third party programs 1 year ago
crlf-test.sh Include actual count of files with `CRLF` endings found 1 year ago
ensure-copyrights.sh set up an AUTHORS file to attribute copyright 4 years ago
gen-go-std-tables.sh fix building for GOOS=darwin on Go 1.22.0 5 months ago