summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2023-03-03 02:13:40 +0100
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2023-03-03 02:13:40 +0100
commit2fda9e0df886cc551e2cd6b9c2a384192bdc3045 (patch)
treea28d901eb541e6b9a18543b776c42efe2ec91900
parent074a0f97ff51efd691dbaef6458e74d75e6ed916 (diff)
downloadhaskell-wip/hdoc-llvm-workaround2.tar.gz
Implement a workaround for -no-asm-shortcutting bugwip/hdoc-llvm-workaround2
-rw-r--r--compiler/GHC/Llvm/Types.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/GHC/Llvm/Types.hs b/compiler/GHC/Llvm/Types.hs
index 8bc64b7d4d..f80b261584 100644
--- a/compiler/GHC/Llvm/Types.hs
+++ b/compiler/GHC/Llvm/Types.hs
@@ -1,6 +1,13 @@
+{-# LANGUAGE CPP #-}
{-# LANGUAGE LambdaCase #-}
+-- Workaround for #21972. It can be removed once the minimal bootstrapping
+-- compiler has a fix for this bug.
+#if defined(darwin_HOST_OS)
+{-# OPTIONS_GHC -fno-asm-shortcutting #-}
+#endif
+
--------------------------------------------------------------------------------
-- | The LLVM Type System.
--