Skip to content

Commit

Permalink
[Runner] Work around wrong path of compiler libraries for riscv64 (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Jan 6, 2025
1 parent 4d0883a commit 36a94b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Runner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
# the wrappers before any additional arguments because we want this path to have
# precedence over anything else. In this way for example we avoid libraries
# from `CompilerSupportLibraries_jll` in `${libdir}` are picked up by mistake.
dir = "/opt/$(aatriplet(p))/$(aatriplet(p))/lib" * (nbits(p) == 32 ? "" : "64")
# Note 2: Compiler libraries for riscv64 ended up in `lib/` by mistake.
dir = "/opt/$(aatriplet(p))/$(aatriplet(p))/lib" * (nbits(p) == 32 || arch(p) == "riscv64" ? "" : "64")
append!(flags, ("-L$(dir)", "-Wl,-rpath-link,$(dir)"))
end
if lock_microarchitecture
Expand Down

0 comments on commit 36a94b7

Please sign in to comment.