make CompileStep.addRPath preserve relative paths
Closes #15849.
:shrug: this PR's purpose was only to make CompileStep.adRPath consistent with the -rpath flag to build-exe. I have no idea what behavior is desirable here, but if relative paths are being interpreted relative to the wrong root, isn't that a separate issue?
There is also an issue resolving $ORIGIN on linux, I presume that this is what should be used if one wants to use a path relative to the installation dir?
And a similar issue (resolving @executable_path on Darwin) that was solved by @kubkon here: https://github.com/ziglang/zig/pull/15061
I don't know how this stuff should work.
Alright. Well, I'm not going to do any more work on this. Others feel free to add commits or close.
Alright. Well, I'm not going to do any more work on this. Others feel free to add commits or close.
I think what you have here is correct. But if it turns out to not be aligned with whatever the correct behavior is holistically, then I'd be happy to pick it up. I don't know what that is so hopefully someone else can clarify.