|
@@ -23,7 +23,8 @@ declare_args() {
|
|
|
# is empty, default sysroot is calculated.
|
|
|
use_sysroot = current_cpu == "x86" || current_cpu == "x64" ||
|
|
|
current_cpu == "arm" || current_cpu == "arm64" ||
|
|
|
- current_cpu == "mipsel" || current_cpu == "mips64el"
|
|
|
+ current_cpu == "mipsel" || current_cpu == "mips64el" ||
|
|
|
+ current_cpu == "riscv64"
|
|
|
}
|
|
|
|
|
|
if (sysroot == "") {
|
|
@@ -50,6 +51,8 @@ if (sysroot == "") {
|
|
|
sysroot = "$target_sysroot_dir/debian_bullseye_arm-sysroot"
|
|
|
} else if (current_cpu == "arm64") {
|
|
|
sysroot = "$target_sysroot_dir/debian_bullseye_arm64-sysroot"
|
|
|
+ } else if (current_cpu == "riscv64") {
|
|
|
+ sysroot = "$target_sysroot_dir/debian_sid_riscv64-sysroot"
|
|
|
} else {
|
|
|
assert(false, "No linux sysroot for cpu: $target_cpu")
|
|
|
}
|