[project @ 2001-08-17 08:35:24 by rrt]
authorrrt <unknown>
Fri, 17 Aug 2001 08:35:24 +0000 (08:35 +0000)
committerrrt <unknown>
Fri, 17 Aug 2001 08:35:24 +0000 (08:35 +0000)
Make sure std is compiled with -fvia-C (NCG can't cope)

ghc/lib/std/Makefile

index 27037d1..bda14ea 100644 (file)
@@ -38,7 +38,8 @@ BOOT_SRCS += PrelPrimopWrappers.hs
 #-----------------------------------------------------------------------------
 #      Setting the GHC compile options
 
-SRC_HC_OPTS += -cpp -fglasgow-exts $(GhcLibHcOpts)
+# -fvia-C added because NCG still can't cope with some primops used in the standard library
+SRC_HC_OPTS += -fvia-C -cpp -fglasgow-exts $(GhcLibHcOpts)
 SRC_HSC2HS_OPTS += -Icbits
 
 ifdef USE_REPORT_PRELUDE