mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove the property disabling optimization (#19952)
Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
This commit is contained in:
co-authored by
Patrick Meinecke
parent
0e4c714e0e
commit
d4414ce6a1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user