We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0005b95 + 66715b6 commit 946ee34Copy full SHA for 946ee34
utils/build.ps1
@@ -984,6 +984,13 @@ function Build-CMakeProject {
984
# Add additional linker flags for generating the debug info.
985
Append-FlagsDefine $Defines CMAKE_SHARED_LINKER_FLAGS "/debug"
986
Append-FlagsDefine $Defines CMAKE_EXE_LINKER_FLAGS "/debug"
987
+ } elseif ($Platform -eq "Android") {
988
+ # Use a built lld linker as the Android's NDK linker might be too
989
+ # old and not support all required relocations needed by the Swift
990
+ # runtime.
991
+ $ldPath = ([IO.Path]::Combine($CompilersBinaryCache, "bin", "ld.lld"))
992
+ Append-FlagsDefine $Defines CMAKE_SHARED_LINKER_FLAGS "--ld-path=$ldPath"
993
+ Append-FlagsDefine $Defines CMAKE_EXE_LINKER_FLAGS "--ld-path=$ldPath"
994
}
995
996
0 commit comments