Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 65cf2363794b98ec657b28214fe9a334308739e9..98ec3bc6b407152da3b7e3abd2726221afce89e0 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -533,6 +533,11 @@ config("compiler_cpu_abi") { |
if (arm_tune != "") { |
cflags += [ "-mtune=$arm_tune" ] |
} |
+ } else if (current_cpu == "arm64") { |
+ if (is_clang && !is_android && !is_nacl) { |
+ cflags += [ "--target=aarch64-linux-gnu" ] |
+ ldflags += [ "--target=aarch64-linux-gnu" ] |
+ } |
} else if (current_cpu == "mipsel") { |
if (is_clang) { |
# Temporarily needed due to unsupported MIPS macro instructions |