Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ebab14f authored by Aditya Kumar's avatar Aditya Kumar Committed by Gerrit Code Review
Browse files

Merge "Pass jump-is-expensive flag both to compiler and linker" into main

parents b64c070e 431c0b9c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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,