Hadrian slow-validate flavour fails
Steps to reproduce
> ./hadrian/build-stack --flavour=slow-validate -c -j
| Run DeriveConstants: none => _build/stage1/lib/platformConstants (and 1 more)
Unrecognised flag: "-DDEBUG"
Error when running Shake build system:
at action, called at src/Rules.hs:40:19 in main:Rules
at need, called at src/Rules.hs:62:5 in main:Rules
* Depends on: _build/stage1/lib/package.conf.d/ghc-8.11.0.20200814.conf
* Depends on: _build/stage1/lib/platformConstants
at cmd', called at src/Builder.hs:293:23 in main:Builder
at cmd, called at src/Builder.hs:380:8 in main:Builder
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/stage0/bin/deriveConstants --gen-haskell-value -o _build/stage1/lib/platformConstants --tmpdir /tmp/extra-dir-30701213520776 --gcc-program /usr/bin/cc --gcc-flag -Wall --gcc-flag -Werror=unused-but-set-variable --gcc-flag -Wno-error=inline --gcc-flag -Irts --gcc-flag -Iincludes --gcc-flag -I_build/stage1/lib --gcc-flag -fcommon --nm-program /usr/bin/nm --objdump-program /usr/bin/objdump --target-os linux -DDEBUG
Exit code: 1
Stderr and Stdout:
Unrecognised flag: "-DDEBUG"
Environment