You need to first create a script like "zigcc" and put it somewhere in your 
PATH, the contents of the script being: 
    zig cc $@

That is needed because Nim right now doesn't accept compiler commands if they 
have spaces in them (since it quotes the executable)

And then you can use it from nim like:

`nim c -d:danger --opt:size --cpu:arm --cc:clang --clang.exe="zigcc" 
--clang.linkerexe="zigcc" --passC:"-target arm-linux-musleabi" --passL:"-target 
arm-linux-musleabi" hello.nim`

Reply via email to