[llvm] b3516a0 - gn build: Bump Android API level to 29, and NDK to r21.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 18:12:57 PST 2019


Author: Peter Collingbourne
Date: 2019-12-05T18:12:36-08:00
New Revision: b3516a0d4af39f39c3c1f5aac389c2879b0e4721

URL: https://github.com/llvm/llvm-project/commit/b3516a0d4af39f39c3c1f5aac389c2879b0e4721
DIFF: https://github.com/llvm/llvm-project/commit/b3516a0d4af39f39c3c1f5aac389c2879b0e4721.diff

LOG: gn build: Bump Android API level to 29, and NDK to r21.

These are both necessary in order to use ELF TLS, which is needed
by the scudo unit tests.

Differential Revision: https://reviews.llvm.org/D71079

Added: 
    

Modified: 
    llvm/utils/gn/build/toolchain/compiler.gni
    llvm/utils/gn/secondary/llvm/triples.gni

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/build/toolchain/compiler.gni b/llvm/utils/gn/build/toolchain/compiler.gni
index 37ad1f5bc313..572fa22774c5 100644
--- a/llvm/utils/gn/build/toolchain/compiler.gni
+++ b/llvm/utils/gn/build/toolchain/compiler.gni
@@ -10,7 +10,7 @@ declare_args() {
   # Example value: getenv("HOME") + "/src/llvm-build/Release+Asserts"
   clang_base_path = ""
 
-  # Set this to the path to Android NDK r19. If set, cross compilation targeting
+  # Set this to the path to Android NDK r21. If set, cross compilation targeting
   # Android will be enabled.
   android_ndk_path = ""
 }

diff  --git a/llvm/utils/gn/secondary/llvm/triples.gni b/llvm/utils/gn/secondary/llvm/triples.gni
index 9c9ba1326395..c6bef4bbd819 100644
--- a/llvm/utils/gn/secondary/llvm/triples.gni
+++ b/llvm/utils/gn/secondary/llvm/triples.gni
@@ -14,11 +14,11 @@ if (current_cpu == "x86") {
   }
 } else if (current_cpu == "arm") {
   if (current_os == "android") {
-    llvm_current_triple = "arm-linux-androideabi"
+    llvm_current_triple = "arm-linux-androideabi29"
   }
 } else if (current_cpu == "arm64") {
   if (current_os == "android") {
-    llvm_current_triple = "aarch64-linux-android21"
+    llvm_current_triple = "aarch64-linux-android29"
   }
 } else if (current_cpu == "ppc64") {
   if (current_os == "linux") {


        


More information about the llvm-commits mailing list