I just recently noticed that GHC in ArchLinux is compiled with the
LLVM backend support:
$ ghc --info |grep llvm
,("Have llvm code generator","YES")
However, can it be made to work on Arch?
$ cat Mains.hs
module Main where
main = return ()
$ ghc --make -fllvm Mains.hs
[1 of 1] Compiling Main ( Mains.hs, Mains.o )
opt: /tmp/ghc14739_0/ghc14739_0.ll:7:78: error: argument
attributes invalid in function type
@Main_main_closure = global %Main_main_closure_struct <{i64
ptrtoint (void (i64* noalias nocapture,i64* noalias nocapture,i64*
noalias nocapture,i64 ,i64 ,i64 ,i64,i64 ,i64 ,i64 ,float ,float
,float ,float ,double ,double )* @Main_main_info to i64),i64 0,i64
0,i64 0}>
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: [email protected] jabber: [email protected]
twitter: magthe http://therning.org/magnus
_______________________________________________
arch-haskell mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/arch-haskell