support Clang 3.8 and -no-integrated-as

Change-Id: I7eb3ef28513858446de4392044785bd3148e7aa5
Reviewed-on: https://skia-review.googlesource.com/63262
Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2017-10-24 11:40:41 -04:00
parent 633765360e
commit c29bb571f7

View File

@ -131,7 +131,9 @@ def opts_cflags(opts):
elif opts == SKIA_OPTS_NEON: elif opts == SKIA_OPTS_NEON:
return ["-mfpu=neon"] return ["-mfpu=neon"]
elif opts == SKIA_OPTS_CRC32: elif opts == SKIA_OPTS_CRC32:
return ["-march=armv8-a+crc"] # NDK r11's Clang (3.8) doesn't pass along this -march setting correctly to an external
# assembler, so we do it manually with -Wa. This is just a bug, fixed in later Clangs.
return ["-march=armv8-a+crc", "-Wa,-march=armv8-a+crc"]
else: else:
return [] return []
@ -176,7 +178,7 @@ def skia_opts_deps(cpu):
if cpu == SKIA_CPU_ARM64: if cpu == SKIA_CPU_ARM64:
res += [":opts_crc32"] res += [":opts_crc32"]
if cpu == SKIA_CPU_X86: if cpu == SKIA_CPU_X86:
res += [ res += [
":opts_sse2", ":opts_sse2",