summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cc/config/riscv64_device.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go
index ac5f74cc8..bcd0060a8 100644
--- a/cc/config/riscv64_device.go
+++ b/cc/config/riscv64_device.go
@@ -31,6 +31,8 @@ var (
"-Xclang -target-feature -Xclang +unaligned-vector-mem",
// Until https://gitlab.com/qemu-project/qemu/-/issues/1976 is fixed...
"-fno-vectorize",
+ // (https://github.com/google/android-riscv64/issues/124)
+ "-mllvm -jump-is-expensive=false",
}
riscv64ArchVariantCflags = map[string][]string{}
@@ -43,7 +45,7 @@ var (
"-Xclang -target-feature -Xclang +unaligned-vector-mem",
// We should change the default for this in clang, but for now...
// (https://github.com/google/android-riscv64/issues/124)
- "-mllvm -jump-is-expensive=false",
+ "-Wl,-mllvm -Wl,-jump-is-expensive=false",
}
riscv64Lldflags = append(riscv64Ldflags,