diff options
Diffstat (limited to 'Configurations/15-android.conf')
-rw-r--r-- | Configurations/15-android.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Configurations/15-android.conf b/Configurations/15-android.conf index f9ad0833fa..10342ed5e3 100644 --- a/Configurations/15-android.conf +++ b/Configurations/15-android.conf @@ -94,6 +94,11 @@ . "/$tritools-4.9/prebuilt/$host"; $user{CC} = "clang" if ($user{CC} !~ m|clang|); $user{CROSS_COMPILE} = undef; + if (which("llvm-ar") =~ m|^$ndk/.*/prebuilt/([^/]+)/|) { + $user{AR} = "llvm-ar"; + $user{ARFLAGS} = [ "rs" ]; + $user{RANLIB} = ":"; + } } elsif (-f "$ndk/AndroidVersion.txt") { #"standalone toolchain" my $cc = $user{CC} // "clang"; # One can probably argue that both clang and gcc should be |