Skip to content

Commit 3cea1ee

Browse files
Ignore ControlFlowGuard outside Windows (#101268)
Don't deoptimize dehydration for this.
1 parent 4abe399 commit 3cea1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ The .NET Foundation licenses this file to you under the MIT license.
229229
<IlcArg Condition="$(_targetOS) != ''" Include="--targetos:$(_targetOS)" />
230230
<IlcArg Condition="$(_targetArchitectureWithAbi) != ''" Include="--targetarch:$(_targetArchitectureWithAbi)" />
231231
<IlcArg Condition="$(IlcMultiModule) == 'true'" Include="--multifile" />
232-
<IlcArg Condition="$(IlcMultiModule) != 'true' and '$(IlcDehydrate)' != 'false' and '$(ControlFlowGuard)' != 'Guard'" Include="--dehydrate" />
232+
<IlcArg Condition="$(IlcMultiModule) != 'true' and '$(IlcDehydrate)' != 'false' and ('$(ControlFlowGuard)' != 'Guard' or '$(_targetOS)' != 'win')" Include="--dehydrate" />
233233
<IlcArg Condition="$(Optimize) == 'true'" Include="-O" />
234234
<IlcArg Condition="$(NativeDebugSymbols) == 'true'" Include="-g" />
235235
<IlcArg Condition="$(IlcDwarfVersion) == '5'" Include="--gdwarf-5" />

0 commit comments

Comments
 (0)