Skip to content

Commit 3e4c446

Browse files
committed
Auditor: Avoid setting macOS rpaths for /workspace
1 parent 2a5e711 commit 3e4c446

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/auditor/dynamic_linkage.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,12 @@ function update_linkage(prefix::Prefix, platform::AbstractPlatform, path::Abstra
460460
end
461461
return rp
462462
end
463-
add_rpath = rp -> `$install_name_tool -add_rpath $(rp) $(rel_path)`
463+
add_rpath = rp -> begin
464+
# Remove paths starting with `/workspace`: they will not work outisde of the
465+
# build environment and only create noise when debugging.
466+
startswith(rp, "/workspace") && return
467+
`$install_name_tool -add_rpath $(rp) $(rel_path)`
468+
end
464469
relink = (op, np) -> `$install_name_tool -change $(op) $(np) $(rel_path)`
465470
elseif Sys.islinux(platform) || Sys.isbsd(platform)
466471
normalize_rpath = rp -> begin

0 commit comments

Comments
 (0)