summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-12-05 17:03:35 +0000
committerIan Lynagh <igloo@earth.li>2007-12-05 17:03:35 +0000
commit5d7e13eab7070d6858f6b8ff572baed572967fe2 (patch)
tree1698b4a431553f2ce5d9b4feb1aa9beaacc885cd
parent8b23f67d60248675c3bdc3fa15577b66c31fa339 (diff)
downloadhaskell-5d7e13eab7070d6858f6b8ff572baed572967fe2.tar.gz
#include ../includes/MachRegs.h rather than just MachRegs.h
This fixes building on NixOS. I'm not sure why it worked everywhere else, but not on NixOS, before.
-rw-r--r--compiler/codeGen/CgUtils.hs2
-rw-r--r--compiler/nativeGen/MachRegs.lhs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/codeGen/CgUtils.hs b/compiler/codeGen/CgUtils.hs
index fa5807add0..886a36a95e 100644
--- a/compiler/codeGen/CgUtils.hs
+++ b/compiler/codeGen/CgUtils.hs
@@ -51,7 +51,7 @@ module CgUtils (
) where
#include "HsVersions.h"
-#include "MachRegs.h"
+#include "../includes/MachRegs.h"
import CgMonad
import TyCon
diff --git a/compiler/nativeGen/MachRegs.lhs b/compiler/nativeGen/MachRegs.lhs
index beea181c07..2205ce0218 100644
--- a/compiler/nativeGen/MachRegs.lhs
+++ b/compiler/nativeGen/MachRegs.lhs
@@ -90,7 +90,7 @@ module MachRegs (
-- HACK: go for the max
#endif
-#include "MachRegs.h"
+#include "../includes/MachRegs.h"
import Cmm
import MachOp ( MachRep(..) )