Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BinaryBuilderBase"
uuid = "7f725544-6523-48cd-82d1-3fa08ff4056e"
authors = ["Elliot Saba <[email protected]>"]
version = "1.36.0"
version = "1.37.0"

[deps]
Bzip2_jll = "6e34b625-4abd-537c-b88f-471c36dfa7a0"
Expand Down
8 changes: 8 additions & 0 deletions src/BuildToolchains.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ function toolchain_file(bt::CMake, p::AbstractPlatform, host_platform::AbstractP
set(CMAKE_SYSROOT /opt/$(aatarget)/$(aatarget)/sys-root/)
"""
end

if arch(p) == "riscv64"
# RISCV libraries are in a subdirectory corresponding to the ABI of the processor
file *= """
set(CMAKE_SYSTEM_LIBRARY_PATH \${CMAKE_SYSROOT}/usr/lib64/lp64d)
"""
end

file *= """
set(CMAKE_INSTALL_PREFIX \$ENV{prefix})

Expand Down
Loading