mirror of
https://github.com/golang/go
synced 2024-11-19 06:04:39 -07:00
build: clear custom variables like GREP_OPTIONS
Fixes #946. R=r, r2 CC=golang-dev https://golang.org/cl/2137048
This commit is contained in:
parent
2f7a5b3379
commit
ffdb855be1
13
src/Make.inc
13
src/Make.inc
@ -90,6 +90,14 @@ HOST_YFLAGS=-d
|
||||
HOST_CFLAGS=-ggdb -I"$(GOROOT)/include" -O2 -fno-inline
|
||||
PWD=$(shell pwd)
|
||||
|
||||
# Make environment more standard.
|
||||
LANG:=
|
||||
LC_ALL:=C
|
||||
LC_CTYPE:=C
|
||||
GREP_OPTIONS:=
|
||||
GREP_COLORS:=
|
||||
export LANG LC_ALL LC_CTYPE GREP_OPTIONS GREP_COLORS
|
||||
|
||||
go-env:
|
||||
@echo export GOARCH=$(GOARCH)
|
||||
@echo export GOOS=$(GOOS)
|
||||
@ -100,6 +108,11 @@ go-env:
|
||||
@echo export LD="$(LD)"
|
||||
@echo export OS="$(OS)"
|
||||
@echo export CFLAGS="$(CFLAGS)"
|
||||
@echo export LANG="$(LANG)"
|
||||
@echo export LC_ALL="$(LC_ALL)"
|
||||
@echo export LC_CTYPE="$(LC_CTYPE)"
|
||||
@echo export GREP_OPTIONS="$(GREP_OPTIONS)"
|
||||
@echo export GREP_COLORS="$(GREP_COLORS)"
|
||||
@echo MAKE_GO_ENV_WORKED=1
|
||||
|
||||
# Don't let the targets in this file be used
|
||||
|
@ -3,6 +3,8 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
eval $(gomake --no-print-directory -f ../Make.inc go-env)
|
||||
|
||||
OUT="Make.deps"
|
||||
TMP="Make.deps.tmp"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user