From: Logan Chien Date: Tue, 29 Apr 2014 18:18:58 +0000 (+0000) Subject: Android uses -fpic for aarch64. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32f64aa4499715298b3c9658258865c806e8abe1;p=clang Android uses -fpic for aarch64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207567 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 36951666e5..1fbf585d69 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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: diff --git a/test/Driver/pic.c b/test/Driver/pic.c index 9d433addbb..bee4f2b236 100644 --- a/test/Driver/pic.c +++ b/test/Driver/pic.c @@ -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