aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDan Kegel <[email protected]>2024-08-12 12:33:25 -0700
committerDan Kegel <[email protected]>2024-08-12 12:59:17 -0700
commit3b0b246a5369dfe9aad80db20c9f72a748a1e26c (patch)
tree82c6335d669296773dd0a3e113a2bf66e44dd710
parent16706513245167e98fec22c91e4a69bcd09deb3a (diff)
downloadtinygo-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--GNUmakefile2
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