Skip to content

Commit aa902b7

Browse files
authored
Fix conditions mismatch for gc-sections with lld (#115964)
1 parent 50447b0 commit aa902b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ The .NET Foundation licenses this file to you under the MIT license.
386386
</PropertyGroup>
387387

388388
<!-- write linker script for lld (13+) to retain the __modules section -->
389-
<WriteLinesToFile File="$(NativeIntermediateOutputPath)sections.ld" Lines="OVERWRITE_SECTIONS { __modules : { KEEP(*(__modules)) } }" Overwrite="true" Condition="'$(LinkerFlavor)' == 'lld' and '$(_LinkerVersion)' &gt; '12'" />
389+
<WriteLinesToFile File="$(NativeIntermediateOutputPath)sections.ld" Lines="OVERWRITE_SECTIONS { __modules : { KEEP(*(__modules)) } }" Overwrite="true" Condition="'$(_targetOS)' != 'win' and '$(_IsApplePlatform)' != 'true' and '$(LinkerFlavor)' == 'lld' and '$(_LinkerVersion)' &gt; '12'" />
390390

391391
<Exec Command="&quot;$(CppLinker)&quot; @(CustomLinkerArg, ' ')"
392392
Condition="'$(_targetOS)' != 'win' and '$(NativeLib)' != 'Static'"

0 commit comments

Comments
 (0)