From fd4e8b3d27fc054b131808d184b738b062ef55b9 Mon Sep 17 00:00:00 2001
From: Ben Gamari <ben@smart-cactus.org>
Date: Tue, 8 Oct 2019 13:41:42 -0400
Subject: [PATCH] gitlab-ci: Work around #16912 in aarch64 build

Currently we bootstrap aarch64 using 8.8.1 since this is the first
release not affected by #15449. However, 8.8.1 is affected by LLVM
version detection issues (#16912). Disable the errant warning during
bootstrapping for the time being.
---
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b383bdd8c99d..f1e66eedf1aa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -410,6 +410,8 @@ validate-x86_64-darwin:
     BIN_DIST_PREP_TAR_COMP: "bindistprep/ghc-aarch64-linux-deb9.tar.xz"
     # Inexplicably makeindex fails
     BUILD_SPHINX_PDF: "NO"
+    # Work around #16912
+    EXTRA_BUILD_MK: "GhcStage1HcOpts += -Wno-unsupported-llvm-version"
   cache:
     key: linux-aarch64-deb9
   tags:
-- 
GitLab