Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Compiled binary includes full path to internal nim files #11572
Compiling any program causes a long filesystem path outside my project to be included in the final binary. I have tried the following flags and it still gets included:
echo "Hello World!"
I'm looking at the code in compiler/msgs.nim that is responsible for checking the flags and deciding what file path to use. Maybe it is an edgecase in the lines that process the full path? I'll be freed up in about an hour, so I'll start troubleshooting then.
On the project I'm working on I get this in debug:
If I add -d:release I get the following:
--listFullPaths:off turns some of the paths into relative (debug):
Both -d:release and --listFullPaths:off:
The problem here is on 210 of msgs.nim:
The problem now only resides in how the compiler use these paths. Paths of modules outside the project being compiled used during codegen is always relative, but can leak easily with
A way to "fix" this is to apply
I think to remove all paths