Disable integrated-as for Mips
Bug: http://b/29771478
Hand-coded assembly in various projects will fail to compile after Clang
switches to integrated assembler for Mips. Disable integrated-as for
Mips.
Test: Verified Mips builds on AOSP both with the old Clang prebuilts and
the new prebuilts (https://android-review.googlesource.com/#/c/243871/)
Change-Id: Idf441cb9c6c2afc8997d5ee56420885930087918
diff --git a/cc/mips_device.go b/cc/mips_device.go
index f9dc5c6..7204e36 100644
--- a/cc/mips_device.go
+++ b/cc/mips_device.go
@@ -52,6 +52,7 @@
mipsClangCflags = append(mipsCflags, []string{
"-fPIC",
+ "-fno-integrated-as",
}...)
mipsCppflags = []string{
@@ -219,7 +220,7 @@
}
func (t *toolchainMips) ClangAsflags() string {
- return "-fPIC"
+ return "-fPIC -fno-integrated-as"
}
func (t *toolchainMips) ClangCflags() string {