Remove the property disabling optimization (#19952)

Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
This commit is contained in:
Travis Plunk
2023-07-12 14:34:40 -07:00
committed by GitHub
co-authored by Patrick Meinecke
parent 0e4c714e0e
commit d4414ce6a1
2 changed files with 4 additions and 10 deletions
-8
View File
@@ -182,14 +182,6 @@
<DebugType>full</DebugType>
</PropertyGroup>
<!-- Define non-windows, release configuration properties -->
<PropertyGroup Condition=" '$(Configuration)' == 'Release' And '$(IsWindows)' != 'true' ">
<!-- Set-Date fails with optimize enabled in NonWindowsSetDate
Debugging the issues resolves the problem
-->
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup>
<Features>strict</Features>
</PropertyGroup>
@@ -935,8 +935,10 @@ namespace System.Management.Automation
[DllImport(psLib)]
internal static extern int WaitPid(int pid, bool nohang);
// This is a struct tm from <time.h>.
[StructLayout(LayoutKind.Sequential)]
// This is the struct `private_tm` from setdate.h in libpsl-native.
// Packing is set to 4 to match the unmanaged declaration.
// https://github.com/PowerShell/PowerShell-Native/blob/c5575ceb064e60355b9fee33eabae6c6d2708d14/src/libpsl-native/src/setdate.h#L23
[StructLayout(LayoutKind.Sequential, Pack = 4)]
internal unsafe struct UnixTm
{
/// <summary>Seconds (0-60).</summary>