CPP is used (sorry) to tailor for Windows and GHC >= 9.0. In that case, ${pkgroot} is not expanded and the bogus prefix is stripped.
Otherwise, ${pkgroot} is expanded. For compatibility with GHC < 9.0, $topdir is still stripped, if present.
I confirm I am licensing my contribution under all licenses that apply to this project (see LICENSE) and that I have no patents covering my contribution.
CPP is used (sorry) to tailor for Windows and GHC >= 9.0. In that case, ${pkgroot} is not expanded and the bogus prefix is stripped.
Otherwise, ${pkgroot} is expanded. For compatibility with GHC < 9.0, $topdir is still stripped, if present.
I confirm I am licensing my contribution under all licenses that apply to this project (see LICENSE) and that I have no patents covering my contribution.