summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2016-12-14 16:45:48 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-15 10:42:25 -0500
commit8b2e5881550be049303b99d7862fb3c85b9ae2a4 (patch)
treeec73e97a6cc26c96e7d417f9805a6a895d09716c /mk
parent6f7d8279cea4aa1082fb07adf5da507297e21ee8 (diff)
downloadhaskell-8b2e5881550be049303b99d7862fb3c85b9ae2a4.tar.gz
Adds llvm-prof flavour
Reviewers: austin, bgamari, RyanGlScott Reviewed By: bgamari, RyanGlScott Subscribers: RyanGlScott, thomie Differential Revision: https://phabricator.haskell.org/D2824
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk.sample3
-rw-r--r--mk/flavours/prof-llvm.mk12
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