[commit: ghc] : gitlab-ci: Produce DWARF-enabled binary distribution (b09f057)

git at git.haskell.org git at git.haskell.org
Wed Mar 6 16:38:22 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : 
Link       : http://ghc.haskell.org/trac/ghc/changeset/b09f057a26c0b8b7afb82c9b87c5aba8a438286f/ghc

>---------------------------------------------------------------

commit b09f057a26c0b8b7afb82c9b87c5aba8a438286f
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Feb 19 11:40:40 2019 -0500

    gitlab-ci: Produce DWARF-enabled binary distribution
    
    (cherry picked from commit d298cb9cf722126316c9697c20a8e0048498efb9)


>---------------------------------------------------------------

b09f057a26c0b8b7afb82c9b87c5aba8a438286f
 .gitlab-ci.yml       | 17 ++++++++++++++++-
 mk/flavours/dwarf.mk | 14 ++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1589bc1..339ea8f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,7 @@
 variables:
   GIT_SSL_NO_VERIFY: "1"
   # Commit of ghc/ci-images repository from which to pull Docker images
-  DOCKER_REV: 2757db588256b0f96dd44d602f0857ae8f86a704
+  DOCKER_REV: 6d19c3adc1f5c28c82aed8c5b1ac40931ac60f3f
 
 before_script:
   - python3 .gitlab/fix-submodules.py
@@ -225,6 +225,21 @@ validate-x86_64-linux-deb9:
   cache:
     key: linux-x86_64-deb9
 
+release-x86_64-linux-deb9-dwarf:
+  extends: .validate-linux
+  stage: build
+  image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
+  allow_failure: true
+  variables:
+    CONFIGURE_ARGS: "--enable-dwarf-unwind"
+    BUILD_FLAVOUR: dwarf
+    TEST_ENV: "x86_64-linux-deb9"
+  artifacts:
+    when: always
+    expire_in: 2 week
+  cache:
+    key: linux-x86_64-deb9
+
 nightly-x86_64-linux-deb9:
   extends: validate-x86_64-linux-deb9
   stage: build
diff --git a/mk/flavours/dwarf.mk b/mk/flavours/dwarf.mk
new file mode 100644
index 0000000..15f16e2
--- /dev/null
+++ b/mk/flavours/dwarf.mk
@@ -0,0 +1,14 @@
+# Build flavour which produces a compiler, RTS, and core libraries with DWARF
+# debug information. For best results run ./configure with
+# --enable-dwarf-unwind.
+
+SRC_HC_OPTS        = -O -H64m
+GhcStage1HcOpts    = -O2
+GhcStage2HcOpts    = -O2 -g3
+GhcRtsHcOpts       = -O2 -g3
+GhcLibHcOpts       = -O2 -g3
+BUILD_PROF_LIBS    = YES
+#SplitObjs
+#HADDOCK_DOCS
+#BUILD_SPHINX_HTML
+#BUILD_SPHINX_PDF



More information about the ghc-commits mailing list