Use bundled llc/opt on Windows (#22438), second attempt
This is the second attempt to address #22438 (closed) (the first was !9352 (closed)).
With #23608 in mind, the content of _build/stage1/lib/settings
becomes
,("LLVM llc command", "path/to/ghc/inplace/mingw/bin/llc.exe")
,("LLVM opt command", "path/to/ghc/inplace/mingw/bin/opt.exe")
,("LLVM llvm-as command", "path/to/ghc/ghc/inplace/mingw/bin/clang.exe")
and _build/reloc-bindist/ghc-*/lib/settings
will contain
,("LLVM llc command", "$topdir/../mingw//bin/llc.exe")
,("LLVM opt command", "$topdir/../mingw//bin/opt.exe")
,("LLVM llvm-as command", "$topdir/../mingw//bin/clang.exe")
unless --enable-distro-toolchain
is set.
This new patch does not use $tooldir
, so no change to compiler/GHC/Settings/IO.hs
is needed.