WASM metadata: use correct GHC version
Previously, wasm-tools metadata show Main.wasm
(where Main.wasm
was produced by the GHC WASM backend) would print e.g.
module Main.wasm:
processed-by:
clang: 18.0.0 (https://gitlab.haskell.org/ghc/llvm-project.git 76af85fde472a076684381c0e950d054052c15e5)
ghc: 9.6
even if eg GHC 9.8 was used. With this patch, it now uses the GHC version that was set at build time, e.g.
module Main.wasm:
processed-by:
clang: 18.0.0 (https://gitlab.haskell.org/ghc/llvm-project.git 76af85fde472a076684381c0e950d054052c15e5)
ghc: 9.9.20231208