From: Daniel Podder Date: Wed, 19 Apr 2017 18:59:58 +0000 (-0500) Subject: IBC: Disable `-partialNGEN -minify` for SPC.dll (#10950) X-Git-Tag: accepted/tizen/base/20180629.140029~1355 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6506d7ed204aa2e42cfb073c56d4895aba0eeb2;p=platform%2Fupstream%2Fcoreclr.git IBC: Disable `-partialNGEN -minify` for SPC.dll (#10950) Add some fixes around the use of IBCMerge in CoreCLR, along with a BuildTools patch (which the fixes are dependent upon): * don't restore the default optdata package through BuildTools * don't use partial ngen by default in CoreCLR for SPC.dll --- diff --git a/Tools-Override/codeOptimization.targets b/Tools-Override/codeOptimization.targets new file mode 100644 index 0000000..4db340f --- /dev/null +++ b/Tools-Override/codeOptimization.targets @@ -0,0 +1,118 @@ + + + + + + 2.0.0-rc-61101-16 + RoslynDependencies.OptimizationData + $(ToolsDir)OptimizationData/ + true + true + + + + + + + + @(ResolvedOptionalToolReferences) + + + + + $(OptimizationDataDir)$(AssemblyName).dll + $(OptimizationDataDir)$(AssemblyName).pgo + + + + + + + + + + + + + + + + + + + + + @(ResolvedOptionalToolReferences) + + + + $(IntermediateOutputPath)/OptimizedAssembly + $(OptimizedAssemblyDir)/$(AssemblyName).dll + + + + + -q -f -mo $(OptimizedAssemblyFile) -incremental $(OptimizationDataDir)$(AssemblyName).pgo + $(IBCMergeArguments) -partialNGEN -minify + + + + + + + + + + + + + + + + + + + + + + + + + + <_OptimizationDataJsonLine Include="{"dependencies": {" /> + <_OptimizationDataJsonLine Include=""$(OptimizationDataPackageName)" : "$(OptimizationDataVersion)" " /> + <_OptimizationDataJsonLine Include="},"frameworks": {"netcoreapp1.0": {},"net46": {}}}"/> + + + + $(OptimizationDataDir)project.json + https:%2F%2Fdotnet.myget.org/F/roslyn/api/v3/index.json + + + + + + + + + + + <_OptimizationDataFiles Include="$(PackagesDir)/$(OptimizationDataPackageName)/$(OptimizationDataVersion)/content/OptimizationData/*.pgo" /> + + + + + \ No newline at end of file diff --git a/config.json b/config.json index 158c1b9..c975171 100644 --- a/config.json +++ b/config.json @@ -192,6 +192,18 @@ "values": [ true, false ], "defaultValue": false }, + "RestoreDefaultOptimizationDataPackage": { + "description": "Instructs BuildTools to restore the default OptimizationData package.", + "valueType": "property", + "values": [ true, false ], + "defaultValue": true + }, + "UsePartialNGENOptimization": { + "description": "Adds the `-partialNGEN -minify` arguments when invoking IBCMerge.", + "valueType": "property", + "values": [ true, false ], + "defaultValue": true + }, "OptimizationDataDir": { "description": "Sets the path where the build should look for IBC profile data.", "valueType": "property", @@ -481,7 +493,9 @@ "MsBuildLog": "default", "MsBuildWrn": "default", "MsBuildErr": "default", - "MsBuildEventLogging": "default" + "MsBuildEventLogging": "default", + "RestoreDefaultOptimizationDataPackage": "false", + "UsePartialNGENOptimization": "false" } } },