Merge "Pass jump-is-expensive flag both to compiler and linker" into main am: 4ebab14f2e

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2919249

Change-Id: Iab8c348a588f36ee167a32e5bf9d70324039a5d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Aditya Kumar
2024-01-19 21:03:54 +00:00
committed by Automerger Merge Worker

View File

@@ -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,