File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5cd6dbd5b9e53e374e6abf1ee433ca5b16360cf3
2
+ refs/heads/master: 831d861d8440ac7613dca6175485fc70941d1866
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ fn get_rpath_relative_to_output(os: session::os,
105
105
// Mac doesn't appear to support $ORIGIN
106
106
let prefix = alt os {
107
107
session : : os_linux. { "$ORIGIN" + fs:: path_sep ( ) }
108
- session:: os_macos. { "" }
108
+ session:: os_macos. { "@executable_path" + fs :: path_sep ( ) }
109
109
} ;
110
110
111
111
prefix + get_relative_to (
@@ -322,7 +322,7 @@ mod test {
322
322
fn test_rpath_relative ( ) {
323
323
let res = get_rpath_relative_to_output ( session:: os_macos,
324
324
"/usr" , "bin/rustc" , "lib/libstd.so" ) ;
325
- assert res == "../lib" ;
325
+ assert res == "@executable_path/ ../lib" ;
326
326
}
327
327
328
328
#[ test]
You can’t perform that action at this time.
0 commit comments