Skip to content

Commit 2c4abde

Browse files
committed
[Runner] Move csl_paths(host_platform) at the beginning of LD_LIBRARY_PATH
This should make it easier to run applications we build with our toolchain.
1 parent f9cd155 commit 2c4abde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Runner.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -918,12 +918,12 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString;
918918
), ":"),
919919

920920
"LD_LIBRARY_PATH" => join((
921-
# Start with a default path
922-
"/usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib",
921+
# Start with our CSL libraries for all architectures that can natively run within this environment
922+
csl_paths(host_platform),
923+
# Then add default system paths
924+
"/usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib",
923925
# Add our loader directories
924926
"/lib64:/lib",
925-
# Add our CSL libraries for all architectures that can natively run within this environment
926-
csl_paths(host_platform),
927927
# Libdir of the host platform, to run programs in `HostBuildDependency`
928928
"$(host_libdir)",
929929
# Add our target/host-specific library directories for compiler support libraries

0 commit comments

Comments
 (0)