From e1ee49ec871ea8abee547aa16acc635e47164339 Mon Sep 17 00:00:00 2001 From: JohnMcPMS Date: Tue, 14 May 2024 17:05:11 -0700 Subject: [PATCH] Allow a property to force the /debugtype override onto some projects (#4480) ## Change For the projects that we have found this to be detrimental on, allow a property to control the `/debugtype`. Re-enable the tests that were impacted. --- azure-pipelines.yml | 2 +- .../Microsoft.Management.Configuration.vcxproj | 9 +++++---- .../Microsoft.Management.Deployment.InProc.vcxproj | 9 +++++---- src/WinGetUtil/WinGetUtil.vcxproj | 9 +++++---- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0a5f27e27a..2b6d34c7b4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -349,7 +349,7 @@ jobs: platform: '$(buildPlatform)' configuration: '$(BuildConfiguration)' diagnosticsEnabled: true - condition: and(succeededOrFailed(), eq(variables.buildPlatform, 'x86')) + condition: succeededOrFailed() - task: PowerShell@2 displayName: Prepare for Microsoft.Management.Configuration.UnitTests (OutOfProc) diff --git a/src/Microsoft.Management.Configuration/Microsoft.Management.Configuration.vcxproj b/src/Microsoft.Management.Configuration/Microsoft.Management.Configuration.vcxproj index 7dd3b9d52e..f8f6102d10 100644 --- a/src/Microsoft.Management.Configuration/Microsoft.Management.Configuration.vcxproj +++ b/src/Microsoft.Management.Configuration/Microsoft.Management.Configuration.vcxproj @@ -163,10 +163,11 @@ true true - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) + /debugtype:cv,fixup /incremental:no %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) diff --git a/src/Microsoft.Management.Deployment.InProc/Microsoft.Management.Deployment.InProc.vcxproj b/src/Microsoft.Management.Deployment.InProc/Microsoft.Management.Deployment.InProc.vcxproj index 0021f17842..fad60b6721 100644 --- a/src/Microsoft.Management.Deployment.InProc/Microsoft.Management.Deployment.InProc.vcxproj +++ b/src/Microsoft.Management.Deployment.InProc/Microsoft.Management.Deployment.InProc.vcxproj @@ -329,10 +329,11 @@ Source.def Source.def wininet.lib;shell32.lib;winsqlite3.lib;shlwapi.lib;icuuc.lib;icuin.lib;urlmon.lib;Advapi32.lib;winhttp.lib;onecoreuap.lib;msi.lib;%(AdditionalDependencies) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) + /debugtype:cv,fixup /incremental:no %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) $(ProjectDir)..\manifest\shared.manifest %(AdditionalManifestFiles) diff --git a/src/WinGetUtil/WinGetUtil.vcxproj b/src/WinGetUtil/WinGetUtil.vcxproj index 07242c999a..c3d82c9872 100644 --- a/src/WinGetUtil/WinGetUtil.vcxproj +++ b/src/WinGetUtil/WinGetUtil.vcxproj @@ -277,10 +277,11 @@ winsqlite3.dll;icuuc.dll;icuin.dll;%(DelayLoadDLLs) winsqlite3.dll;icuuc.dll;icuin.dll;%(DelayLoadDLLs) winsqlite3.dll;icuuc.dll;icuin.dll;%(DelayLoadDLLs) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) - /debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions) + /debugtype:cv,fixup /incremental:no %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) + /debug:full %(AdditionalOptions) $(ProjectDir)..\manifest\shared.manifest %(AdditionalManifestFiles)