未验证 提交 f0c10e13 编写于 作者: R Rob LaDuca 提交者: GitHub

Merge pull request #1744 from dotnet/dev/roladuca/ilasmfix

Fix DebuggableAttribute in InjectModuleInitializer post-build targets so we don't disable JIT optimizations.
......@@ -404,6 +404,12 @@
<ILFile>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)$(AssemblyName).il'))</ILFile>
</PropertyGroup>
<!-- Ensures the DebuggableAttribute has the appropriate optimizations enabled. -->
<PropertyGroup>
<DebugEnableJitOptimization>false</DebugEnableJitOptimization>
<DebugEnableJitOptimization Condition="'$(Configuration)' == 'Release'">true</DebugEnableJitOptimization>
</PropertyGroup>
<!--
Make a backup before overwriting $(TargetFile)
-->
......@@ -417,6 +423,7 @@
Out="$(TargetFile)"
Dll="true"
Debug="true"
DebugEnableJitOptimization="$(DebugEnableJitOptimization)"
Quiet="true" />
<ILAsmTask ILAsm="$(ILAsm)"
......@@ -426,6 +433,7 @@
Out="$(TargetFile)"
Dll="true"
Debug="true"
DebugEnableJitOptimization="$(DebugEnableJitOptimization)"
Quiet="true" />
</Target>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册