[mips] Support building compiler-rt with gcc.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 20 Apr 2015 12:44:01 +0000 (12:44 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 20 Apr 2015 12:44:01 +0000 (12:44 +0000)
commitffa272ebbb7217c846ac2a92ff3f04be382ae854
treeb9a1426dfab9dea134ca8d22c34439f681a6698b
parent6ca13eaf821a7825212a0c58afd44bfd791dc158
[mips] Support building compiler-rt with gcc.

Summary:
This will allow us to enable it on the buildbot (and then enable a
sanitizer buildbot).

The problem is that gcc for Mips does not accept -m32/-m64 like clang does.
We therefore need to use the nearest equivalent -mips32r2/-mips64r2. We must
also specify -mabi=64 in the -mips64r2 case since gcc's default ABI has
traditionally been N32 whereas clang's is N64.

Reviewers: sagar

Reviewed By: sagar

Subscribers: llvm-commits, samsonov, kcc, mohit.bhakkad, Anand.Takale, sagar

Differential Revision: http://reviews.llvm.org/D8892

llvm-svn: 235299
compiler-rt/cmake/config-ix.cmake