[commit: ghc] wip/dwarf-bindists: gitlab-ci: Produce DWARF-enabled binary distribution (138af87)

git at git.haskell.org git at git.haskell.org
Thu Feb 21 15:13:13 UTC 2019


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

On branch  : wip/dwarf-bindists
Link       : http://ghc.haskell.org/trac/ghc/changeset/138af8785ff441273c13115b794837353cf93d28/ghc

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

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

    gitlab-ci: Produce DWARF-enabled binary distribution


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

138af8785ff441273c13115b794837353cf93d28
 .circleci/images/x86_64-linux-deb9/Dockerfile |  2 +-
 .gitlab-ci.yml                                | 14 ++++++++++++++
 mk/flavours/dwarf.mk                          | 14 ++++++++++++++
 3 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/.circleci/images/x86_64-linux-deb9/Dockerfile b/.circleci/images/x86_64-linux-deb9/Dockerfile
index 5341abe..e47a3db 100644
--- a/.circleci/images/x86_64-linux-deb9/Dockerfile
+++ b/.circleci/images/x86_64-linux-deb9/Dockerfile
@@ -12,7 +12,7 @@ RUN apt-get update -qq
 RUN apt-get install -qy zlib1g-dev libtinfo-dev libsqlite3-0 libsqlite3-dev \
     ca-certificates g++ git make automake autoconf gcc \
     perl python3 texinfo xz-utils lbzip2 patch openssh-client sudo \
-    jq wget curl
+    jq wget curl libdw1
 
 # Documentation tools
 RUN apt-get install -qy python3-sphinx texlive-xetex texlive-latex-extra
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 33d96d8..d8b8d64 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -256,6 +256,20 @@ validate-x86_64-linux-deb9:
   cache:
     key: linux-x86_64-deb9
 
+release-x86_64-linux-deb9-dwarf:
+  extends: .validate-linux
+  stage: build
+  image: ghcci/x86_64-linux-deb9:0.2
+  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