[Git][ghc/ghc][master] configure: Correctly report when subsections-via-symbols is disabled
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Wed Sep 18 11:56:13 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
e4169ba9 by Ben Gamari at 2024-09-18T07:55:28-04:00
configure: Correctly report when subsections-via-symbols is disabled
As noted in #24962, currently subsections-via-symbols is disabled on
AArch64/Darwin due to alleged breakage. However, `configure` reports to
the user that it is enabled. Fix this.
- - - - -
1 changed file:
- m4/fptools_set_haskell_platform_vars.m4
Changes:
=====================================
m4/fptools_set_haskell_platform_vars.m4
=====================================
@@ -154,12 +154,14 @@ AC_DEFUN([GHC_SUBSECTIONS_VIA_SYMBOLS],
dnl See Note [autoconf assembler checks and -flto]
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([], [__asm__ (".subsections_via_symbols");])],
- [AC_MSG_RESULT(yes)
+ [
if test x"$TargetArch" = xaarch64; then
dnl subsections via symbols is busted on arm64
TargetHasSubsectionsViaSymbols=NO
+ AC_MSG_RESULT([no, subsections-via-symbols are broken on AArch64/Darwin (GHC 24962)])
else
TargetHasSubsectionsViaSymbols=YES
+ AC_MSG_RESULT(yes)
fi
],
[TargetHasSubsectionsViaSymbols=NO
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e4169ba910cefbbf9e8fe5770c3f4b43f24bb509
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e4169ba910cefbbf9e8fe5770c3f4b43f24bb509
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240918/3007d80a/attachment.html>
More information about the ghc-commits
mailing list