[Git][ghc/ghc][wip/hadrian-windows-bindist-cross] fixes

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Thu Aug 24 10:19:49 UTC 2023



Matthew Pickering pushed to branch wip/hadrian-windows-bindist-cross at Glasgow Haskell Compiler / GHC


Commits:
116f8604 by Matthew Pickering at 2023-08-24T11:19:38+01:00
fixes

- - - - -


1 changed file:

- m4/fp_prog_ld_target.m4


Changes:

=====================================
m4/fp_prog_ld_target.m4
=====================================
@@ -5,12 +5,12 @@ AC_DEFUN([FP_PROG_CC_LINKER_TARGET],
 [
     AC_MSG_CHECKING([whether $CC used as a linker understands --target])
     echo 'int foo() { return 0; }' > conftest1.c
-    echo 'int bar() { return 0; }' > conftest2.c
+    echo 'int main() { return 0; }' > conftest2.c
     ${CC} -c conftest1.c
     ${CC} -c conftest2.c
-    if "$CC" $$2 --target=$LlvmTarget -o conftest conftest1.o conftest2.o > /dev/null 2>&1 ;
+    if "$CC" $$1 --target=$LlvmTarget -o conftest conftest1.o conftest2.o > /dev/null 2>&1 ;
     then
-        $2="--target=$LlvmTarget $$2"
+        $1="--target=$LlvmTarget $$1"
         AC_MSG_RESULT([yes])
     else
         AC_MSG_RESULT([no])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/116f8604098f16b950a8ff33897dddbe35a125b4

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/116f8604098f16b950a8ff33897dddbe35a125b4
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/20230824/f6b1d128/attachment.html>


More information about the ghc-commits mailing list