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

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Thu Aug 24 14:34:50 UTC 2023



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


Commits:
23ee17fa by Matthew Pickering at 2023-08-24T15:34:42+01:00
debug

- - - - -


2 changed files:

- .gitlab/jobs.yaml
- m4/fp_prog_cc_linker_target.m4


Changes:

=====================================
.gitlab/jobs.yaml
=====================================
@@ -30,10 +30,6 @@
     "dependencies": [],
     "image": null,
     "needs": [
-      {
-        "artifacts": false,
-        "job": "hadrian-ghc-in-ghci"
-      }
     ],
     "rules": [
       {


=====================================
m4/fp_prog_cc_linker_target.m4
=====================================
@@ -1,14 +1,17 @@
 # FP_PROG_CC_LINKER_TARGET
 # -------------------
 # Check to see if the C compiler used as a linker supports `--target`
+#
+# $1 - Variable which contains the options passed to the C compiler when used as
+#      a linker
 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 main() { return 0; }' > conftest2.c
-    ${CC} -c conftest1.c
-    ${CC} -c conftest2.c
-    if "$CC" $$1 --target=$LlvmTarget -o conftest conftest1.o conftest2.o > /dev/null 2>&1 ;
+    "${CC}" -c conftest1.c
+    "${CC}" -c conftest2.c
+    if "$CC" $$1 --target=$LlvmTarget -o conftest conftest1.o conftest2.o;
     then
         $1="--target=$LlvmTarget $$1"
         AC_MSG_RESULT([yes])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/23ee17fa291d81af2d132d0ffa1b3f1291e48d68

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/23ee17fa291d81af2d132d0ffa1b3f1291e48d68
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/bbd06711/attachment-0001.html>


More information about the ghc-commits mailing list