Skip to content

Commit 9976f0c

Browse files
committed
Print go version before building
Signed-off-by: Eduardo J. Ortega U <5791035+ejortegau@users.noreply.github.com>
1 parent 159f725 commit 9976f0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export CGO_CFLAGS := -O1
5252
build-dyn:
5353
ifndef NOBANNER
5454
echo $$(date): Building source tree
55+
go version
5556
endif
5657
bash ./build.env
5758
CGO_ENABLED=0 go install -trimpath $(EXTRA_BUILD_FLAGS) $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" ./go/...
@@ -60,6 +61,7 @@ endif
6061
build:
6162
ifndef NOBANNER
6263
echo $$(date): Building source tree
64+
go version
6365
endif
6466
bash ./build.env
6567
# build all the binaries by default with CGO disabled.
@@ -71,6 +73,7 @@ endif
7173
cross-build:
7274
ifndef NOBANNER
7375
echo $$(date): Building source tree
76+
go version
7477
endif
7578
bash ./build.env
7679
# In order to cross-compile, go install requires GOBIN to be unset
@@ -85,6 +88,7 @@ endif
8588
debug:
8689
ifndef NOBANNER
8790
echo $$(date): Building source tree
91+
go version
8892
endif
8993
bash ./build.env
9094
go install -trimpath $(EXTRA_BUILD_FLAGS) $(VT_GO_PARALLEL) -ldflags "$(shell tools/build_version_flags.sh)" -gcflags -'N -l' ./go/...

0 commit comments

Comments
 (0)