Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index ebfe51adde9156e26a0c81a1c7a090898f07aafb..623e81693617b97c0c7b55c396feef3be6d5b86f 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -211,15 +211,17 @@ config("compiler") { |
] |
} |
- if (cpu_arch == "arm") { |
- cflags += [ |
- "-target arm-linux-androideabi", |
- "-mllvm -arm-enable-ehabi", |
- ] |
- ldflags += [ "-target arm-linux-androideabi" ] |
- } else if (cpu_arch == "x86") { |
- cflags += [ "-target x86-linux-androideabi" ] |
- ldflags += [ "-target x86-linux-androideabi" ] |
+ if (is_clang) { |
+ if (cpu_arch == "arm") { |
+ cflags += [ |
+ "-target arm-linux-androideabi", |
+ "-mllvm -arm-enable-ehabi", |
+ ] |
+ ldflags += [ "-target arm-linux-androideabi" ] |
+ } else if (cpu_arch == "x86") { |
+ cflags += [ "-target x86-linux-androideabi" ] |
+ ldflags += [ "-target x86-linux-androideabi" ] |
+ } |
} |
} |
} |