You don't actually need to mess with .cargo/config
for this, it can be done with just the target json. I added -nostdlib
(which implies -nostartfiles
) to the pre-link-args
section and it works as expected.
1 Like