[GHC] #10170: Find versioned versions of LLVM tools

GHC ghc-devs at haskell.org
Sat Mar 21 09:45:25 UTC 2015


#10170: Find versioned versions of LLVM tools
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                   Owner:  erikd
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Compiler (LLVM)   |                 Version:  7.11
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 That's easy to fix. Revert this change I made in
 1dfab7a8ace5f09f00f8fb695932b4324e88b822:

 {{{
 \--- a/configure.ac
 +++ b/configure.ac
 @@ -508,7 +508,7 @@ then
      echo "main = putStrLn \"%function\"" > conftestghc.hs

      # Check whether LLVM backend is default for this platform
 -    "${WithGhc}" conftestghc.hs 2>&1 >/dev/null
 +    "${WithGhc}" -pgmlc="${LlcCmd}" -pgmlo="${OptCmd}" conftestghc.hs
 2>&1 >/dev/null
      res=`./conftestghc`
      if test "x$res" = "x%object"
      then
 @@ -525,7 +525,7 @@ then

      # -fllvm is not the default, but set a flag so the Makefile can check
      # -for it in the build flags later on
 -    "${WithGhc}" -fforce-recomp -fllvm conftestghc.hs 2>&1 >/dev/null
 +    "${WithGhc}" -fforce-recomp -pgmlc="${LlcCmd}" -pgmlo="${OptCmd}"
 -fllvm conftestghc.hs 2>&1 >/dev/null
      if test $? = 0
      then
          res=`./conftestghc`
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10170#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list