Post Amys7DgAdwPWCOPHSy by icon_of_computational_sin@mstdn.starnix.network
(DIR) More posts by icon_of_computational_sin@mstdn.starnix.network
(DIR) Post #AmyZwisgUrvqbq6Zpg by icon_of_computational_sin@mstdn.starnix.network
2024-10-13T21:29:04Z
0 likes, 2 repeats
TIL that because Windows sucks immensely, GCC has this feature where it reads command line args from file. You can call gcc @/path/to/file and gcc will just use stuff from that file ad command line, one arg per line.Wanna guess how I discovered this? By debugging GHC and why exactly my compilation pipeline was royally fucked up sideways.:akko_unamused:
(DIR) Post #AmygWwFSsFJqDYPdbs by gentoobro@shitpost.cloud
2024-10-13T22:42:51.063367Z
0 likes, 0 repeats
Windows sucks immenselyInstall Gentoo. And the Haskell overlay.
(DIR) Post #Amys7DgAdwPWCOPHSy by icon_of_computational_sin@mstdn.starnix.network
2024-10-14T00:52:39Z
1 likes, 0 repeats
@gentoobro GHC uses that thing on all platforms
(DIR) Post #AmysGNbt5cTpbalseG by amiloradovsky@stereophonic.space
2024-10-14T00:22:10.360715Z
0 likes, 0 repeats
@icon_of_computational_sin I would be surprised if GCC didn't have such an optionalso what GCC has to do with GHC — I thought the latter was self-hosted and didn't need no C compiler
(DIR) Post #AmysGOgt4W4cxO7O52 by icon_of_computational_sin@mstdn.starnix.network
2024-10-14T00:54:18Z
0 likes, 0 repeats
@amiloradovsky GHC calls GCC for linking and to build C code. Duh... basically, you can mix .hs and .c files in the same callghc -o myprog myprog.hs a_bit_of.cThis works.