Directions for building GHC via LLVM backend?
Skirmantas Kligys
Skirmantas.Kligys at gmail.com
Tue Feb 8 05:07:49 CET 2011
Hello,
I think I remember reading that the LLVM backend can be used to rebuild GHC
itself. Naively, I tried the following edit in GHC 7.0.1's mk/build.mk:
# Fast build via LLVM backend:
BuildFlavour = quickllvm
ifeq "$(BuildFlavour)" "quickllvm"
SRC_HC_OPTS = -H64m -O0 -fllvm -keep-llvm-files
GhcStage1HcOpts = -O -fllvm -keep-llvm-files
GhcStage2HcOpts = -O0 -fllvm -keep-llvm-files
GhcLibHcOpts = -O -fllvm -keep-llvm-files
SplitObjs = NO
HADDOCK_DOCS = NO
BUILD_DOCBOOK_HTML = NO
BUILD_DOCBOOK_PS = NO
BUILD_DOCBOOK_PDF = NO
endif
That failed. What I really wanted to get was *.ll LLVM assembler files for the
standard library. Any better ideas on how could I get them out of GHC?
Thanks.
More information about the Cvs-ghc
mailing list