diff options
-rw-r--r-- | mk/build.mk.sample | 3 | ||||
-rw-r--r-- | mk/flavours/prof-llvm.mk | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/mk/build.mk.sample b/mk/build.mk.sample index 6266219f32..e9219bd32b 100644 --- a/mk/build.mk.sample +++ b/mk/build.mk.sample @@ -34,6 +34,9 @@ # Profile the stage2 compiler: #BuildFlavour = prof +# Profile the stage2 compiler (LLVM backend): +#BuildFlavour = prof-llvm + # A development build, working on the stage 1 compiler: #BuildFlavour = devel1 diff --git a/mk/flavours/prof-llvm.mk b/mk/flavours/prof-llvm.mk new file mode 100644 index 0000000000..b54fabd66e --- /dev/null +++ b/mk/flavours/prof-llvm.mk @@ -0,0 +1,12 @@ +SRC_HC_OPTS = -O0 -H64m -fllvm +GhcStage1HcOpts = -O +GhcStage2HcOpts = -O +GhcLibHcOpts = -O +BUILD_PROF_LIBS = YES +SplitObjs = NO +HADDOCK_DOCS = NO +BUILD_SPHINX_HTML = NO +BUILD_SPHINX_PDF = NO +BUILD_MAN = NO + +GhcProfiled = YES |