Skip to content

Commit 82eb395

Browse files
authored
Merge pull request dotnet/coreclr#6030 from kyulee1/config
Fix default optimization setting for System.Private.CoreLib Commit migrated from dotnet/coreclr@f33074e
2 parents 0cba00f + 572693b commit 82eb395

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coreclr/src/mscorlib/System.Private.CoreLib.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<UTF8OutPut>true</UTF8OutPut>
3030
<HighEntropyVA>true</HighEntropyVA>
3131
<ErrorReport>prompt</ErrorReport>
32-
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
3332
<CLSCompliant>true</CLSCompliant>
3433
<WarningLevel>4</WarningLevel>
3534
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
@@ -76,12 +75,15 @@
7675
<!-- Configuration specific properties -->
7776
<PropertyGroup Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Checked'">
7877
<DebugSymbols>true</DebugSymbols>
78+
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Debug'">false</Optimize>
79+
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Checked'">true</Optimize>
7980
<DebugType>full</DebugType>
8081
<DefineConstants>DBG;_DEBUG;_LOGGING;DEBUG;TRACE;$(DefineConstants)</DefineConstants>
8182
<DefineConstants Condition="'$(Platform)' == 'x86' or '$(Platform)' == 'amd64'">CODE_ANALYSIS;$(DefineConstants)</DefineConstants>
8283
</PropertyGroup>
8384
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
8485
<DebugSymbols>true</DebugSymbols>
86+
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
8587
<DebugType>pdbOnly</DebugType>
8688
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
8789
</PropertyGroup>

0 commit comments

Comments
 (0)