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/testdata/script
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.
1 year ago
..
asm.txtar support inline comments in asm #include lines 1 year ago
atomic.txtar drop support for Go 1.20 1 year ago
basic.txtar drop support for Go 1.20 1 year ago
cache.txtar drop support for Go 1.20 1 year ago
cgo.txtar support inline comments in asm #include lines 1 year ago
crossbuild.txtar fix building for GOOS=darwin on Go 1.22.0 1 year ago
ctrlflow.txtar add trash block generator (#825) 1 year ago
debugdir.txtar drop support for Go 1.20 1 year ago
embed.txtar drop support for Go 1.20 1 year ago
goenv.txtar drop support for Go 1.20 1 year ago
gogarble.txtar fix building for GOOS=darwin on Go 1.22.0 1 year ago
goversion.txtar drop support for Go 1.20 1 year ago
help.txtar drop support for Go 1.20 1 year ago
implement.txtar strip struct tags when hashing structs for type identity 1 year ago
imports.txtar drop support for Go 1.20 1 year ago
init.txtar drop support for Go 1.20 1 year ago
ldflags.txtar drop support for Go 1.20 1 year ago
linker.txtar drop support for Go 1.20 1 year ago
linkname.txtar drop support for Go 1.20 1 year ago
list_error.txtar drop support for Go 1.20 1 year ago
literals.txtar fix shuffle obfuscation compiler optimization 1 year ago
modinfo.txtar drop support for Go 1.20 1 year ago
plugin.txtar drop support for Go 1.20 1 year ago
position.txtar drop support for Go 1.20 1 year ago
reflect.txtar track types used in make assigned to a reflected type 1 year ago
reverse.txtar track converted types when recording reflection usage 1 year ago
run.txtar drop support for Go 1.20 1 year ago
seed-cache.txtar drop support for Go 1.20 1 year ago
seed.txtar drop support for Go 1.20 1 year ago
syntax.txtar avoid panic when embedding a builtin alias 1 year ago
test.txtar drop support for Go 1.20 1 year ago
tiny.txtar drop support for Go 1.20 1 year ago
typeparams.txtar drop support for Go 1.20 1 year ago