Android uses -fpic for aarch64.

llvm-svn: 207567
This commit is contained in:
Logan Chien 2014-04-29 18:18:58 +00:00
parent 993fa0604d
commit 4ecf0158a4
2 changed files with 3 additions and 0 deletions

View File

@ -2382,6 +2382,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
case llvm::Triple::armeb:
case llvm::Triple::thumb:
case llvm::Triple::thumbeb:
case llvm::Triple::aarch64:
case llvm::Triple::mips:
case llvm::Triple::mipsel:
case llvm::Triple::mips64:

View File

@ -217,3 +217,5 @@
// RUN: | FileCheck %s --check-prefix=CHECK-PIC1
// RUN: %clang -c %s -target mipsel-linux-android -### 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-PIC1
// RUN: %clang -c %s -target aarch64-linux-android -### 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-PIC1