diff options
author | Alp Mestanogullari <alp@well-typed.com> | 2018-04-17 23:04:11 +0100 |
---|---|---|
committer | Tamar Christina <tamar@zhox.com> | 2018-04-17 23:08:30 +0100 |
commit | 5d76846405240c051b00cddcda9d8d02c880968e (patch) | |
tree | e63b4fdae0d8e236a3a6e291bf164b38d80f2b5c /libraries/base/GHC/Base.hs | |
parent | cab3e6bfa8486c6c8eecac269c54d662f1371a0c (diff) | |
download | haskell-5d76846405240c051b00cddcda9d8d02c880968e.tar.gz |
Introduce a $tooldir variable for nicer toolchain detection on Windows
Summary:
This patch affects several files that affect how we detect mingw and perl
on Windows. The initial motivation is:
https://github.com/snowleopard/hadrian/issues/564
where, with Hadrian building relocatable (non-inplace) GHCs, the current
detection mechanism falls short by e.g only trying $topdir/../mingw. But
in Hadrian, for reasons given in that issue, we would need to store e.g mingw
under $topdir/../../mingw except for binary distributions, where we want
to follow the existing structure, in which case $topdir/../mingw is correct. So
we need to support both, which is what this patch hopefully implements.
Test Plan: ./validate
Reviewers: Phyx, hvr, bgamari, erikd
Reviewed By: Phyx
Subscribers: snowleopard, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4598
Diffstat (limited to 'libraries/base/GHC/Base.hs')
0 files changed, 0 insertions, 0 deletions