Closed greenfork closed 2 years ago
If you read the stacktrace, you clearly didn't replace every instance, since it is callling /home/grfork/reps/zig/build/zig cc
. Otherwise, this should work fine.
@bakpakin thanks for replying! Sure, I just don't know where else to replace so far. If I were to submit a patch, is this approach generally correct or there's a single place where we could do the splitting? This will probably be required for all the parts such as compiler, linker, archiver.
There may be some call sites in declare.janet for generating a static executable, but there aren't many places to check through.
There is also the simpler option of wrapping zig cc in a script zigcc which then just calls exec.
I'm trying to use
zig cc
as a compiler option for jpm. I changed several things incc.janet
but here the stacktrace is not very helpful and so far I'm stuck.I mostly replaced all
(shell cc ...
with(shell ;(string/split " " cc) ...
incc.janet
, this is the stacktrace after that: