• Alp Mestanogullari's avatar
    Introduce a $tooldir variable for nicer toolchain detection on Windows · 5d768464
    Alp Mestanogullari authored
    This patch affects several files that affect how we detect mingw and perl
    on Windows. The initial motivation is:
    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
aclocal.m4 74.6 KB