Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 7cc2c39da9422ac403c70b1ae5fa0ffb5aabef6e..c822ca4a150037c91f434fe151bfca49ae416761 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -398,6 +398,20 @@ config("compiler") { |
] |
} |
} else if (current_cpu == "arm") { |
+ if (is_clang && !is_android && !is_nacl) { |
+ cflags += [ |
+ "-target", |
+ "arm-linux-gnueabihf", |
+ ] |
+ ldflags += [ |
+ "-target", |
+ "arm-linux-gnueabihf", |
+ ] |
+ |
+ # We need to disable clang's builtin assembler as it can't |
+ # handle several asm files, crbug.com/124610 |
+ cflags += [ "-no-integrated-as" ] |
+ } |
if (!is_nacl) { |
cflags += [ |
"-march=$arm_arch", |