Use LLD linker when targeting Bionic (#88179)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 29 Jun 2023 11:25:39 +0000 (20:25 +0900)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 11:25:39 +0000 (04:25 -0700)
https://github.com/dotnet/runtime/issues/87340#issuecomment-1612561061

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets

index f88b9a2..bb1b8c4 100644 (file)
@@ -22,6 +22,7 @@ The .NET Foundation licenses this file to you under the MIT license.
     <DsymUtilOptions Condition="'$(_IsApplePlatform)' == 'true'">--flat</DsymUtilOptions>
     <_SymbolPrefix Condition="'$(_IsApplePlatform)' == 'true'">_</_SymbolPrefix>
     <LinkerFlavor Condition="'$(LinkerFlavor)' == '' and '$(_targetOS)' == 'freebsd'">lld</LinkerFlavor>
+    <LinkerFlavor Condition="'$(LinkerFlavor)' == '' and '$(_linuxLibcFlavor)' == 'bionic'">lld</LinkerFlavor>
     <LinkerFlavor Condition="'$(LinkerFlavor)' == '' and '$(_targetOS)' == 'linux'">bfd</LinkerFlavor>
   </PropertyGroup>