[Git][ghc/ghc][wip/t22599] debugging

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Wed Jan 4 23:38:29 UTC 2023



Matthew Pickering pushed to branch wip/t22599 at Glasgow Haskell Compiler / GHC


Commits:
ecf3f5b5 by Matthew Pickering at 2023-01-04T23:38:20+00:00
debugging

- - - - -


2 changed files:

- .gitlab/ci.sh
- + a.cpp


Changes:

=====================================
.gitlab/ci.sh
=====================================
@@ -213,6 +213,10 @@ function set_toolchain_paths() {
           x86_64-darwin|aarch64-darwin) ;;
           *) fail "unknown NIX_SYSTEM" ;;
         esac
+        clang++ -v a.cpp
+        clang++ -v a.o -o a
+        clang -v a.o c++ -lc++abi
+
         nix-build .gitlab/darwin/toolchain.nix --argstr system "$NIX_SYSTEM" -o toolchain.sh
         cat toolchain.sh
       fi


=====================================
a.cpp
=====================================
@@ -0,0 +1,5 @@
+#include <iostream>
+int main(int argc, char** argv) {
+    std::cout << "hello world\n";
+    return 0;
+}



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ecf3f5b569630f895982b088b27f9261f22ea4b8
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/20230104/6355cb1d/attachment.html>


More information about the ghc-commits mailing list