Skip to content

Commit 52e5caa

Browse files
committed
Support riscv64 for Go
1 parent b409474 commit 52e5caa

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/BuildToolchains.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ function meson_cpu_family(p::AbstractPlatform)
170170
return "aarch64"
171171
elseif startswith(arch(p)::String, "arm")
172172
return "arm"
173+
elseif arch(p) == "riscv64"
174+
return "riscv64"
173175
end
174176
end
175177

src/Platforms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const ARCHITECTURE_FLAGS = Dict(
160160
#"power10" => ["-mcpu=power10", "-mtune=power10"],
161161
),
162162
"riscv64" => OrderedDict(
163-
"riscv64" => [], # TODO
163+
"riscv64" => [],
164164
),
165165
),
166166
"gcc" => Dict(

src/Runner.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
664664
"x86_64" => "amd64",
665665
"i686" => "386",
666666
"powerpc64le" => "ppc64le",
667+
"riscv64" => "riscv64",
667668
)
668669
return arch_mapping[arch(p)]
669670
end

0 commit comments

Comments
 (0)