summaryrefslogtreecommitdiff
path: root/distrib/configure.ac.in
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2023-01-09 18:36:15 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-09 21:11:03 -0500
commit64286132cc0db4e227637887f98f5a3ecf7d326a (patch)
tree5cae9445f8876de69f858de4acff92a5fce39f9e /distrib/configure.ac.in
parentcfaf1ad7d4f75fc3f04090a17cc675d0e54e8e55 (diff)
downloadhaskell-64286132cc0db4e227637887f98f5a3ecf7d326a.tar.gz
Store bootstrap_llvm_target and use it to set LlvmTarget in bindists
This mirrors some existing logic for the bootstrap_target which influences how TargetPlatform is set. As described on #21970 not storing this led to `LlvmTarget` being set incorrectly and hence the wrong `--target` flag being passed to the C compiler. Towards #21970
Diffstat (limited to 'distrib/configure.ac.in')
-rw-r--r--distrib/configure.ac.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 6263db351d..8c0caa56e1 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -18,6 +18,8 @@ dnl--------------------------------------------------------------------
dnl Various things from the source distribution configure
bootstrap_target=@TargetPlatform@
+bootstrap_llvm_target=@LlvmTarget@
+
TargetHasRTSLinker=@TargetHasRTSLinker@
AC_SUBST(TargetHasRTSLinker)