From 5d7e13eab7070d6858f6b8ff572baed572967fe2 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 5 Dec 2007 17:03:35 +0000 Subject: [PATCH] #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. --- compiler/codeGen/CgUtils.hs | 2 +- compiler/nativeGen/MachRegs.lhs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/codeGen/CgUtils.hs b/compiler/codeGen/CgUtils.hs index fa5807a..886a36a 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 beea181..2205ce0 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(..) ) -- 1.7.10.4