Fix 'nil' file created by Makefile on Windows (#7224)

The /dev/null device on Windows is a virtual file named "nul" not "nil".
This fix works under both cmd.exe and Powershell.
This commit is contained in:
Asgaut Eng 2020-03-24 22:18:03 +01:00 committed by GitHub
parent 9b9a84964b
commit c12c55da96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
ifeq ($(OS), Windows_NT) ifeq ($(OS), Windows_NT)
VERSION := $(shell git describe --exact-match --tags 2>nil) VERSION := $(shell git describe --exact-match --tags 2>nul)
HOME := $(HOMEPATH) HOME := $(HOMEPATH)
CGO_ENABLED ?= 0 CGO_ENABLED ?= 0
export CGO_ENABLED export CGO_ENABLED