Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PowerShell/PowerShell.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Plunk <travis.plunk@microsoft.com>2018-05-15 01:01:44 +0300
committerGitHub <noreply@github.com>2018-05-15 01:01:44 +0300
commit472b5f7bd1dbc97f685a781f44c1f5c561e3e637 (patch)
tree25daaae63d8151599065b47f0e24c4d8c3bf33ae /PowerShell.Common.props
parent0a322ddb7082d26e10a550e2eea4e9b66dc89edf (diff)
Enable full symbols for windows (#6853)
The main purpose of this was to enable full symbols for windows release build. Also makes explicit where we are optimizing and where we are not optimizing due to https://github.com/dotnet/corefx/issues/29700
Diffstat (limited to 'PowerShell.Common.props')
-rw-r--r--PowerShell.Common.props39
1 files changed, 39 insertions, 0 deletions
diff --git a/PowerShell.Common.props b/PowerShell.Common.props
index 14331f3061..4caacf688e 100644
--- a/PowerShell.Common.props
+++ b/PowerShell.Common.props
@@ -108,4 +108,43 @@
<HighEntropyVA>true</HighEntropyVA>
</PropertyGroup>
+ <PropertyGroup>
+ <DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
+ <IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
+ </PropertyGroup>
+
+ <!-- Define non-windows, all configuration properties -->
+ <PropertyGroup Condition=" '$(IsWindows)' != 'true' ">
+ <DefineConstants>$(DefineConstants);UNIX</DefineConstants>
+ </PropertyGroup>
+
+ <!-- Define all OS, debug configuration properties -->
+ <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
+ <DebugType>portable</DebugType>
+ </PropertyGroup>
+
+ <!-- Define all OS, release configuration properties -->
+ <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
+ <Optimize>true</Optimize>
+ </PropertyGroup>
+
+ <!-- Define windows, release configuration properties -->
+ <PropertyGroup Condition=" '$(Configuration)' == 'Release' And '$(IsWindows)' == 'true' ">
+ <Optimize>true</Optimize>
+ <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>
+ <DebugType>portable</DebugType>
+ </PropertyGroup>
+
+ <!-- Define all OS, CodeCoverage configuration properties -->
+ <PropertyGroup Condition=" '$(Configuration)' == 'CodeCoverage' ">
+ <DebugType>full</DebugType>
+ </PropertyGroup>
</Project>