diff options
author | Dan Kegel <[email protected]> | 2024-08-12 12:33:25 -0700 |
---|---|---|
committer | Dan Kegel <[email protected]> | 2024-08-12 12:59:17 -0700 |
commit | 3b0b246a5369dfe9aad80db20c9f72a748a1e26c (patch) | |
tree | 82c6335d669296773dd0a3e113a2bf66e44dd710 | |
parent | 16706513245167e98fec22c91e4a69bcd09deb3a (diff) | |
download | tinygo-3b0b246a5369dfe9aad80db20c9f72a748a1e26c.tar.gz tinygo-3b0b246a5369dfe9aad80db20c9f72a748a1e26c.zip |
GNUmakefile: tools: avoid -C option on go generate to make test-llvm15-go119 circleci job happy
Avoids error
go generate -C ./internal/tools -tags tools ./
flag provided but not defined: -C
usage: go generate [-run regexp] [-n] [-v] [-x] [build flags] [file.go... | packages]
Run 'go help generate' for details.
make: *** [GNUmakefile:952: tools] Error 2
The -C flag was added sometime around go 1.20 by
https://cs.opensource.google/go/go/+/2af48cbb7d85e5fdc635e75b99f949010c607786
so we can't use it while we still support go 1.19 in CI
-rw-r--r-- | GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 246b80803..504e1561a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -949,7 +949,7 @@ endif .PHONY: tools tools: - go generate -C ./internal/tools -tags tools ./ + cd internal/tools && go generate -tags tools ./ .PHONY: lint lint: tools ## Lint source tree |