Open ratiotile opened 7 years ago
I think that passL is supposed to pass options to the linker directly, but instead it passes options to cl.exe. Nim's vccexe.exe doesn't call link.exe directly.
No, it means "pass this to the linking step".
What about either moving the link options after the files, or creating a new passPostL option that does it?
I thought about supporting $1
and using %
internally so that appending/prepending doesn't require yet another switch. If the passL command contains no dollar sign, it's done as it is now for backwards compatibility.
This issue has been automatically marked as stale because it has not had recent activity. If you think it is still a valid issue, write a comment below; otherwise it will be closed. Thank you for your contributions.
for reference https://forum.nim-lang.org/t/341
Used this in a .cfg file:
passL:"/LTCG"
I think that
passL
is supposed to pass options to the linker directly, but instead it passes options tocl.exe
. Nim'svccexe.exe
doesn't calllink.exe
directly.--listCmd
option shows this command:cl.exe /LTCG [file args]
Tried to work around with:
passL:"/link /LTCG"
. However,/link
must appear after all file arguments, and nim generates this call:cl.exe /link /LTCG [file args]
It should be this:
cl.exe [file args] /link /LTCG
Nim Compiler Version 0.17.0 (2017-05-18) [Windows: amd64]