5 ms·
I don't think this is correct. Most compilers include the path to the source code on the build machine in the debug info, and it's a common problem for reproduc
by shawnz 5y ago
I don't think this is correct. Most compilers include the path to the source code on the build machine in the debug info, and it's a common problem for reproducible builds. This is not a rust-specific issue.
Obviously the binary can't contain paths from the execution machine because it doesn't know what the execution machine will be at compile time, and the source code isn't stored on the execution machine anyway. The point of including the source path in the debug info is for the developer to locate the code responsible if there's a crash.
See: https://reproducible-builds.org/docs/build-path/ https://reproducible-builds.org/docs/build-path/