MachRegs.h requires ghcautoconf.h to be included before it (#7591)
authorStephen Blackheath <docks.cattlemen.stephen@blacksapphire.com>
Wed, 16 Jan 2013 01:28:42 +0000 (14:28 +1300)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 1 Feb 2013 08:58:23 +0000 (08:58 +0000)
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.

includes/CodeGen.Platform.hs

index b038f82..14642bd 100644 (file)
@@ -6,6 +6,7 @@ import Panic
 #endif
 import Reg
 
+#include "ghcautoconf.h"
 #include "stg/MachRegs.h"
 
 #if MACHREGS_i386 || MACHREGS_x86_64