summaryrefslogtreecommitdiff
path: root/includes/CodeGen.Platform.hs
diff options
context:
space:
mode:
authorStephen Blackheath <docks.cattlemen.stephen@blacksapphire.com>2013-01-16 14:28:42 +1300
committerSimon Marlow <marlowsd@gmail.com>2013-02-01 08:58:23 +0000
commit8bb9548a991142137d13a8d77fb6f46ed2f49f4d (patch)
treeab58a10d3967e9d055b0d0a2cbf40d7e405938b6 /includes/CodeGen.Platform.hs
parentb0fad0c580e0dd52d73743a877608af60408ec89 (diff)
downloadhaskell-8bb9548a991142137d13a8d77fb6f46ed2f49f4d.tar.gz
MachRegs.h requires ghcautoconf.h to be included before it (#7591)
Because, in the case of ARM processors, it needs to know what ARM variant is being used. This patch fixes that in includes/CodeGen.Platform.hs, otherwise there is a mismatch between the compiler and llvm.
Diffstat (limited to 'includes/CodeGen.Platform.hs')
-rw-r--r--includes/CodeGen.Platform.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/CodeGen.Platform.hs b/includes/CodeGen.Platform.hs
index b038f822c2..14642bd1c5 100644
--- a/includes/CodeGen.Platform.hs
+++ b/includes/CodeGen.Platform.hs
@@ -6,6 +6,7 @@ import Panic
#endif
import Reg
+#include "ghcautoconf.h"
#include "stg/MachRegs.h"
#if MACHREGS_i386 || MACHREGS_x86_64