diff options
author | Tamar Christina <tamar@zhox.com> | 2020-08-16 17:18:14 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-08-28 02:23:13 -0400 |
commit | f065b6b012fb8f73689bc5c2a4904d5e6e377af8 (patch) | |
tree | 46d9289744458c7e6d97234772d5bf134590c53e /hadrian/src/Rules | |
parent | c6f50cea42a9ffc947bf4243986663cc820b0ec8 (diff) | |
download | haskell-f065b6b012fb8f73689bc5c2a4904d5e6e377af8.tar.gz |
Fix use distro toolchian
Diffstat (limited to 'hadrian/src/Rules')
-rw-r--r-- | hadrian/src/Rules/Generate.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hadrian/src/Rules/Generate.hs b/hadrian/src/Rules/Generate.hs index e584907a9b..99a1a9e42f 100644 --- a/hadrian/src/Rules/Generate.hs +++ b/hadrian/src/Rules/Generate.hs @@ -245,6 +245,7 @@ generateGhcPlatformH = do hostOs <- chooseSetting HostOs TargetOs hostVendor <- chooseSetting HostVendor TargetVendor ghcUnreg <- getFlag GhcUnregisterised + inplaceTools <- getFlag SystemDistroMINGW return . unlines $ [ "#if !defined(__GHCPLATFORM_H__)" , "#define __GHCPLATFORM_H__" @@ -274,6 +275,8 @@ generateGhcPlatformH = do , "" ] ++ + [ "#define USE_INPLACE_MINGW_TOOLCHAIN 1" | inplaceTools ] + ++ [ "#define UnregisterisedCompiler 1" | ghcUnreg ] ++ [ "" |