[Git][ghc/ghc][wip/ghc-toolchain-fixes] check for emcc in gnu_LD check

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Thu Jul 27 14:49:31 UTC 2023



Matthew Pickering pushed to branch wip/ghc-toolchain-fixes at Glasgow Haskell Compiler / GHC


Commits:
561504af by Matthew Pickering at 2023-07-27T15:49:05+01:00
check for emcc in gnu_LD check

- - - - -


1 changed file:

- m4/fp_prog_ld_is_gnu.m4


Changes:

=====================================
m4/fp_prog_ld_is_gnu.m4
=====================================
@@ -4,10 +4,19 @@
 # GNU ld or not.
 AC_DEFUN([FP_PROG_LD_IS_GNU],[
 AC_CACHE_CHECK([whether ld is GNU ld], [fp_cv_gnu_ld],
-[[if $LD --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then
-  fp_cv_gnu_ld=YES
-else
+[[
+
+if $LD --version 2> /dev/null | grep "emcc" > /dev/null 2>&1;
+then
   fp_cv_gnu_ld=NO
-fi]])
+else
+  if $LD --version 2> /dev/null | grep "GNU" > /dev/null 2>&1; then
+    fp_cv_gnu_ld=YES
+  else
+    fp_cv_gnu_ld=NO
+  fi
+fi
+
+]])
 AC_SUBST([LdIsGNULd],["$fp_cv_gnu_ld"])
 ])# FP_PROG_LD_IS_GNU



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/561504af9c0695b3ec908ff76ea78bbb84c8cb2d

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/561504af9c0695b3ec908ff76ea78bbb84c8cb2d
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/20230727/660a3f0d/attachment-0001.html>


More information about the ghc-commits mailing list