We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd6dbd commit 831d861Copy full SHA for 831d861
src/comp/back/rpath.rs
@@ -105,7 +105,7 @@ fn get_rpath_relative_to_output(os: session::os,
105
// Mac doesn't appear to support $ORIGIN
106
let prefix = alt os {
107
session::os_linux. { "$ORIGIN" + fs::path_sep() }
108
- session::os_macos. { "" }
+ session::os_macos. { "@executable_path" + fs::path_sep() }
109
};
110
111
prefix + get_relative_to(
@@ -322,7 +322,7 @@ mod test {
322
fn test_rpath_relative() {
323
let res = get_rpath_relative_to_output(session::os_macos,
324
"/usr", "bin/rustc", "lib/libstd.so");
325
- assert res == "../lib";
+ assert res == "@executable_path/../lib";
326
}
327
328
#[test]
0 commit comments