Skip to content

Commit

Permalink
Ignore ControlFlowGuard outside Windows (dotnet#101268)
Browse files Browse the repository at this point in the history
Don't deoptimize dehydration for this.
  • Loading branch information
MichalStrehovsky authored Apr 19, 2024
1 parent 4abe399 commit 3cea1ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ The .NET Foundation licenses this file to you under the MIT license.
<IlcArg Condition="$(_targetOS) != ''" Include="--targetos:$(_targetOS)" />
<IlcArg Condition="$(_targetArchitectureWithAbi) != ''" Include="--targetarch:$(_targetArchitectureWithAbi)" />
<IlcArg Condition="$(IlcMultiModule) == 'true'" Include="--multifile" />
<IlcArg Condition="$(IlcMultiModule) != 'true' and '$(IlcDehydrate)' != 'false' and '$(ControlFlowGuard)' != 'Guard'" Include="--dehydrate" />
<IlcArg Condition="$(IlcMultiModule) != 'true' and '$(IlcDehydrate)' != 'false' and ('$(ControlFlowGuard)' != 'Guard' or '$(_targetOS)' != 'win')" Include="--dehydrate" />
<IlcArg Condition="$(Optimize) == 'true'" Include="-O" />
<IlcArg Condition="$(NativeDebugSymbols) == 'true'" Include="-g" />
<IlcArg Condition="$(IlcDwarfVersion) == '5'" Include="--gdwarf-5" />
Expand Down

0 comments on commit 3cea1ee

Please sign in to comment.