diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-02-09 11:06:27 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-02-09 11:06:31 +0100 |
commit | bfec4a6aade005b6dbd170645d4f2d062cee1d92 (patch) | |
tree | 3063b3d0476b6a9d4f15caeefecf55d2fbdb2165 | |
parent | 04fb7813ab489b1d70a73351836950825b2ce4f7 (diff) | |
download | haskell-bfec4a6aade005b6dbd170645d4f2d062cee1d92.tar.gz |
Unset GREP_OPTIONS in build system
Test Plan: GREP_OPTIONS=--blah ./validate
Reviewers: austin, thomie
Reviewed By: thomie
Differential Revision: https://phabricator.haskell.org/D1887
GHC Trac Issues: #11530
-rw-r--r-- | Makefile | 7 | ||||
-rwxr-xr-x | boot | 3 | ||||
-rw-r--r-- | ghc.mk | 2 |
3 files changed, 11 insertions, 1 deletions
@@ -18,6 +18,13 @@ MAKEFLAGS += --no-builtin-rules .SUFFIXES: + +# ----------------------------------------------------------------------------- +# Sanitize environment + +# See Trac #11530 +export GREP_OPTIONS := + ifneq "$(filter maintainer-clean distclean clean clean_% help,$(MAKECMDGOALS))" "" -include mk/config.mk else @@ -11,6 +11,9 @@ my %required_tag; my $validate; my $curdir; +# See Trac #11530 +$ENV{GREP_OPTIONS} = ''; + $required_tag{"-"} = 1; $validate = 0; @@ -92,7 +92,7 @@ $(error Your make does not support abspath. You need GNU make >= 3.81) endif ################################################## - +# ----------------------------------------------------------------------------- # Catch make if it runs away into an infinite loop ifeq "$(MAKE_RESTARTS)" "" else ifeq "$(MAKE_RESTARTS)" "1" |