-
- ; let installed :: FilePath -> FilePath
- installed file = top_dir </> file
- installed_mingw_bin file = top_dir </> ".." </> "mingw" </> "bin" </> file
- installed_perl_bin file = top_dir </> ".." </> "perl" </> file
+ -- On Windows, mingw is distributed with GHC,
+ -- so we look in TopDir/../mingw/bin
+ -- It would perhaps be nice to be able to override this
+ -- with the settings file, but it would be a little fiddly
+ -- to make that possible, so for now you can't.
+ ; gcc_prog <- if isWindowsHost then return $ installed_mingw_bin "gcc"
+ else getSetting "C compiler command"
+ ; perl_path <- if isWindowsHost
+ then return $ installed_perl_bin "perl"
+ else getSetting "perl command"