diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-10-10 10:54:24 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-10-14 08:26:41 +1100 |
commit | 29310b622801733e1b29a9a61988406872db13ca (patch) | |
tree | d61d935389d00e327c1a2a7ab5cc1df861981302 /configure.ac | |
parent | e8c8173923302268ef950c3b21e276779e45ac83 (diff) | |
download | haskell-29310b622801733e1b29a9a61988406872db13ca.tar.gz |
Switch to LLVM version 3.7
Before this commit, GHC only supported LLVM 3.6. Now it only supports
LLVM 3.7 which was released in August 2015. LLVM version 3.6 and earlier
do not work on AArch64/Arm64, but 3.7 does.
Also:
* Add CC_Ghc constructor to LlvmCallConvention.
* Replace `maxSupportLlvmVersion`/`minSupportLlvmVersion` with
a single `supportedLlvmVersion` variable.
* Get `supportedLlvmVersion` from version specified in configure.ac.
* Drop llvmVersion field from DynFlags (no longer needed because only
one version is supported).
Test Plan: Validate on x86_64 and arm
Reviewers: bgamari, austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1320
GHC Trac Issues: #10953
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c9a6ed0020..832ca22a06 100644 --- a/configure.ac +++ b/configure.ac @@ -553,8 +553,10 @@ esac # tools we are looking for. In the past, GHC supported a number of # versions of LLVM simultaneously, but that stopped working around # 3.5/3.6 release of LLVM. -LlvmVersion=3.6 +LlvmVersion=3.7 AC_SUBST([LlvmVersion]) +sUPPORTED_LLVM_VERSION=$(echo \($LlvmVersion\) | sed 's/\./,/') +AC_DEFINE_UNQUOTED([sUPPORTED_LLVM_VERSION], ${sUPPORTED_LLVM_VERSION}, [The supported LLVM version number]) dnl ** Which LLVM llc to use? dnl -------------------------------------------------------------- |