Disable ASM for arm(64)/Linux with clang
Clang build fails on the assembly files.
diff --git a/BUILD.gn b/BUILD.gn
index d9f5160..81c5f1f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -76,9 +76,20 @@
public_configs = [ ":no_asm_config" ]
}
} else if (current_cpu == "arm" && (is_linux || is_android)) {
- sources += crypto_sources_linux_arm
+ if (is_android || !is_clang) {
+ sources += crypto_sources_linux_arm
+ } else {
+ public_configs = [ ":no_asm_config" ]
+ }
} else if (current_cpu == "arm64" && (is_linux || is_android)) {
- sources += crypto_sources_linux_aarch64
+ if (is_android || !is_clang) {
+ sources += crypto_sources_linux_aarch64
+ } else {
+ # TODO(zra): The android build doesn't use the integrated assembler when
+ # using clang. Figure out how to specify crypto extensions when using
+ # clang for Linux.
+ public_configs = [ ":no_asm_config" ]
+ }
} else {
public_configs = [ ":no_asm_config" ]
}