summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2015-12-31 22:01:26 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2015-12-31 22:35:49 +0100
commit0d20737860c29169d89c1d5ea728f3848cc28564 (patch)
tree8044cd1d918e4dcca74f086d09faf6e9ffe0aed3 /mk
parenteae40e16a0933fe3b6cb0ee4dc9cdbe3d21e44ce (diff)
downloadhaskell-0d20737860c29169d89c1d5ea728f3848cc28564.tar.gz
Drop redundant/explicit `=1` in `-DFOO=1` flags
Quoting the POSIX standard for the `-D` C compiler flag: -D name[=value] Define name as if by a C-language #define directive. If no `=value` is given, a value of 1 shall be used. [...] Removing this explicit `=1` definition from `-D` flags which are used to define boolean macro constants makes the CLI invocation a bit more idiomatic and reduces visual noise in debugging output (flags containing `=`s are additionally put in single-quotes by GHC)
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index fd0bb5167e..e107beac0e 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -647,9 +647,9 @@ ifeq "$(CrossCompiling)" "YES"
SRC_HSC2HS_OPTS_STAGE1 += --cross-compile
SRC_HSC2HS_OPTS_STAGE2 += --cross-compile
endif
-SRC_HSC2HS_OPTS_STAGE0 += --cflag=-D$(HostArch_CPP)_HOST_ARCH=1 --cflag=-D$(HostOS_CPP)_HOST_OS=1
-SRC_HSC2HS_OPTS_STAGE1 += --cflag=-D$(TargetArch_CPP)_HOST_ARCH=1 --cflag=-D$(TargetOS_CPP)_HOST_OS=1
-SRC_HSC2HS_OPTS_STAGE2 += --cflag=-D$(TargetArch_CPP)_HOST_ARCH=1 --cflag=-D$(TargetOS_CPP)_HOST_OS=1
+SRC_HSC2HS_OPTS_STAGE0 += --cflag=-D$(HostArch_CPP)_HOST_ARCH --cflag=-D$(HostOS_CPP)_HOST_OS
+SRC_HSC2HS_OPTS_STAGE1 += --cflag=-D$(TargetArch_CPP)_HOST_ARCH --cflag=-D$(TargetOS_CPP)_HOST_OS
+SRC_HSC2HS_OPTS_STAGE2 += --cflag=-D$(TargetArch_CPP)_HOST_ARCH --cflag=-D$(TargetOS_CPP)_HOST_OS
ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
WINDRES = $(INPLACE_MINGW)/bin/windres