Add gcc path
Template B: This PR does not modify behaviour or interface
E.g. the PR only touches documentation or tests, does refactorings, etc.
show-build-info with -pgmc gives new output on each platform https://github.com/haskell/cabal/pull/10969#issuecomment-2952148207
Include the following checklist in your PR:
- [ ] Patches conform to the coding conventions.
- [X] Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).
Can you please write a quick (but legible) self-contained explanation of why we want this?
@ulysses4ever philosophically I'm trying to convince myself to write a few dozen link tests 😅
the real problem is that when adding -pgm* flags we need to write at least 5(10) tests instead of one because the output contains the path to the C compiler
example from the pull request I'm referring to:
- no
-pgmcsingle-2.outsingle-2.test.hs - gcc is
/usr/bin/gccsingle.outsingle.test.hs - clang is
/tools/ghc-<GHCVER>/lib/../mingw/bin/clangwin-single-4.outwin-single-4.test.hs - clang is
/ghcup/ghc/<GHCVER>/lib/../mingw/bin/clangwin-single-8-6.outwin-single-8-6.test.hs - clang is
/ghcup/ghc/<GHCVER>/lib/../mingw//bin/clangwin-single.outwin-single.test.hs
That sounds more like a bug / deficiency in the normalizer to me.
That sounds more like a bug / deficiency in the normalizer to me.
What is a normalizer?
It's a postprocessor for test output that produces those <UPPERCASE> things in place of mutable paths.
https://github.com/haskell/cabal/blob/master/cabal-testsuite/src/Test/Cabal/OutputNormalizer.hs
@zlonast: any progress? could we help?
@zlonast: a kind ping?
@Mikolaj Hi, sorry for not answering, I don't have time to continue here yet.
No worries, take care!