Skip to content

Commit a08a941

Browse files
committed
More riscv64 support
1 parent d5a16e3 commit a08a941

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/riscv64.jl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ end
2323

2424
__init__() = setup_riscv64()
2525

26+
27+
2628
function Base.BinaryPlatforms.validate_tags(tags::Dict)
2729
throw_invalid_key(k) = throw(ArgumentError("Key \"$(k)\" cannot have value \"$(tags[k])\""))
2830
# Validate `arch`
@@ -87,11 +89,16 @@ function Base.BinaryPlatforms.validate_tags(tags::Dict)
8789
end
8890
end
8991

90-
using .BinaryPlatforms: arch_mapping, os_mapping, libc_mapping, call_abi_mapping,
91-
libgfortran_version_mapping, cxxstring_abi_mapping, libstdcxx_version_mapping
92-
9392
function Base.parse(::Type{Platform}, triplet::AbstractString; validate_strict::Bool = false)
94-
setup_riscv64()
93+
# setup_riscv64()
94+
95+
arch_mapping = BinaryPlatforms.arch_mapping
96+
os_mapping = BinaryPlatforms.os_mapping
97+
libc_mapping = BinaryPlatforms.libc_mapping
98+
call_abi_mapping = BinaryPlatforms.call_abi_mapping
99+
libgfortran_version_mapping = BinaryPlatforms.libgfortran_version_mapping
100+
cxxstring_abi_mapping = BinaryPlatforms.cxxstring_abi_mapping
101+
libstdcxx_version_mapping = BinaryPlatforms.libstdcxx_version_mapping
95102

96103
# Helper function to collapse dictionary of mappings down into a regex of
97104
# named capture groups joined by "|" operators

0 commit comments

Comments
 (0)