]> xenbits.xensource.com Git - xen.git/commitdiff
tools/golang: Run `go vet` as part of the build process
authorGeorge Dunlap <george.dunlap@cloud.com>
Fri, 19 Apr 2024 10:35:57 +0000 (11:35 +0100)
committerGeorge Dunlap <george.dunlap@cloud.com>
Wed, 24 Apr 2024 15:42:16 +0000 (16:42 +0100)
Signed-off-by: George Dunlap <george.dunlap@cloud.com>
Acked-by: Nick Rosbrook <rosbrookn@gmail.com>
tools/golang/xenlight/Makefile

index c5bb6b94a87c233aa9afc9e88e3b93cc0dfd77c2..645e7b3a8226becb36275d8287bd00e435f614f7 100644 (file)
@@ -29,6 +29,7 @@ $(subst .gen.,.%.,$(GOXL_GEN_FILES)): gengotypes.py $(LIBXL_SRC_DIR)/libxl_types
 # so that it can find the actual library.
 .PHONY: build
 build: xenlight.go $(GOXL_GEN_FILES)
+       CGO_CFLAGS="$(CFLAGS_libxenlight) $(CFLAGS_libxentoollog) $(APPEND_CFLAGS)" CGO_LDFLAGS="$(call xenlibs-ldflags,light toollog) $(APPEND_LDFLAGS)" $(GO) vet
        CGO_CFLAGS="$(CFLAGS_libxenlight) $(CFLAGS_libxentoollog) $(APPEND_CFLAGS)" CGO_LDFLAGS="$(call xenlibs-ldflags,light toollog) $(APPEND_LDFLAGS)" $(GO) build -x
 
 .PHONY: install