diff options
author | Haibo Huang <hhb@google.com> | 2021-02-26 21:23:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-03 15:28:56 (GMT) |
commit | 005e2cdfb05d92e1b24df2d35ea10ac557b3d831 (patch) | |
tree | 908b5fab4fede499d204a95e333e6074164f3c6b /Modules/Compiler/Clang.cmake | |
parent | ed7a87f27055bd196d3f4af2468b935301fce727 (diff) | |
download | CMake-005e2cdfb05d92e1b24df2d35ea10ac557b3d831.zip CMake-005e2cdfb05d92e1b24df2d35ea10ac557b3d831.tar.gz CMake-005e2cdfb05d92e1b24df2d35ea10ac557b3d831.tar.bz2 |
Android: Do not use gold for ndk >= r22
Fixes: #21772
Diffstat (limited to 'Modules/Compiler/Clang.cmake')
-rw-r--r-- | Modules/Compiler/Clang.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake index 5862521..9f93d41 100644 --- a/Modules/Compiler/Clang.cmake +++ b/Modules/Compiler/Clang.cmake @@ -77,7 +77,7 @@ else() set(CMAKE_${lang}_COMPILE_OPTIONS_IPO "-flto") endif() - if(ANDROID) + if(ANDROID AND NOT CMAKE_ANDROID_NDK_VERSION VERSION_GREATER_EQUAL "22") # https://github.com/android-ndk/ndk/issues/242 set(CMAKE_${lang}_LINK_OPTIONS_IPO "-fuse-ld=gold") endif() |