Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
0fd6d8e4
by Cheng Shao at 2025-12-23T16:14:05-05:00
1 changed file:
Changes:
| ... | ... | @@ -47,12 +47,20 @@ runTestGhcFlags = do |
| 47 | 47 | then "-optc-fno-builtin"
|
| 48 | 48 | else ""
|
| 49 | 49 | |
| 50 | + -- Also pass -keep-tmp-files to GHC when --keep-test-files is
|
|
| 51 | + -- passed to hadrian for debugging purpose (#26688)
|
|
| 52 | + keepFiles <- testKeepFiles <$> userSetting defaultTestArgs
|
|
| 53 | + let keepTmpFilesFlag
|
|
| 54 | + | keepFiles = "-keep-tmp-files"
|
|
| 55 | + | otherwise = ""
|
|
| 56 | + |
|
| 50 | 57 | -- Take flags to send to the Haskell compiler from test.mk.
|
| 51 | 58 | -- See: https://github.com/ghc/ghc/blob/master/testsuite/mk/test.mk#L37
|
| 52 | 59 | unwords <$> sequence
|
| 53 | 60 | [ pure " -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -fno-dump-with-ways -fprint-error-index-links=never -rtsopts"
|
| 54 | 61 | , pure ghcOpts
|
| 55 | 62 | , pure ghcExtraFlags
|
| 63 | + , pure keepTmpFilesFlag
|
|
| 56 | 64 | , ifMinGhcVer "711" "-fno-warn-missed-specialisations"
|
| 57 | 65 | , ifMinGhcVer "711" "-fshow-warning-groups"
|
| 58 | 66 | , ifMinGhcVer "801" "-fdiagnostics-color=never"
|