Commit 58246470 authored by simonmar's avatar simonmar

[project @ 2002-09-09 11:44:13 by simonmar]

Build without hslibs on GHC >= 5.04
parent 394d3083
{-# OPTIONS -cpp #-}
------------------------------------------------------------------ ------------------------------------------------------------------
-- A primop-table mangling program -- -- A primop-table mangling program --
------------------------------------------------------------------ ------------------------------------------------------------------
module Main where module Main where
#if __GLASGOW_HASKELL__ >= 504
import Text.ParserCombinators.Parsec
#else
import Parsec import Parsec
#endif
import Monad import Monad
import Char import Char
import List import List
......
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# $Id: Makefile,v 1.7 2001/08/08 13:21:04 qrczak Exp $ # $Id: Makefile,v 1.8 2002/09/09 11:44:13 simonmar Exp $
TOP=../.. TOP=../..
include $(TOP)/mk/boilerplate.mk include $(TOP)/mk/boilerplate.mk
HS_PROG = genprimopcode HS_PROG = genprimopcode
SRC_HC_OPTS += -syslib text
ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
ifeq "$(ghc_ge_504)" "NO"
SRC_HC_OPTS += -package text
endif
# genprimopcode is needed to boot in ghc/compiler... # genprimopcode is needed to boot in ghc/compiler...
ifneq "$(BootingFromHc)" "YES" ifneq "$(BootingFromHc)" "YES"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment