Adds llvm-prof flavour
authorMoritz Angermann <moritz.angermann@gmail.com>
Wed, 14 Dec 2016 21:45:48 +0000 (16:45 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 15 Dec 2016 15:42:25 +0000 (10:42 -0500)
Reviewers: austin, bgamari, RyanGlScott

Reviewed By: bgamari, RyanGlScott

Subscribers: RyanGlScott, thomie

Differential Revision: https://phabricator.haskell.org/D2824

mk/build.mk.sample
mk/flavours/prof-llvm.mk [new file with mode: 0644]

index 6266219..e9219bd 100644 (file)
@@ -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 (file)
index 0000000..b54fabd
--- /dev/null
@@ -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