vcpkg/ports/libpq/patches/windows/fix-compile-flag-Zi.patch
Daniel Schürmann 440075a9fc
[libpq] Update version to 14.1 2 (#22516)
* update to 14.1

* adjust patches

* add lz4 feature on !windows

* version stuff

* [skip actions] patch configure.ac and run autoreconf

* fix some stuff

* [skip actions] more details

* [libpq] Add license filed to vcpkg json

* [libpq] Adjust tcl version to 90g 90s and 90sg

* [libpq] fail early from unsupported features

* [libpq] lake xslt dependent from xml

* [libpq] Update version database

* [libpq] quote static

* [libpq] Update Version Database

Co-authored-by: Alexander Neumann <Alexander.Neumann@hamburg.de>
2022-03-23 16:41:00 -07:00

34 lines
1.2 KiB
Diff

diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
index b93992f..2397511 100644
--- a/src/tools/msvc/MSBuildProject.pm
+++ b/src/tools/msvc/MSBuildProject.pm
@@ -336,7 +336,7 @@ sub WriteItemDefinitionGroup
<BrowseInformation>false</BrowseInformation>
<WarningLevel>Level3</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
- <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
<CompileAs>Default</CompileAs>
</ClCompile>
<Link>
diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
index e0c9a88..98f9e67 100644
--- a/src/tools/msvc/Install.pm
+++ b/src/tools/msvc/Install.pm
@@ -352,9 +352,12 @@ sub CopySolutionOutput
|| croak "Could not copy $pf.$ext\n";
}
}
- lcopy("$conf\\$pf\\$pf.pdb", "$target\\bin\\$pf.pdb")
- || croak "Could not copy $pf.pdb\n";
- print ".";
+ if ($1 eq 'DynamicLibrary')
+ {
+ lcopy("$conf\\$pf\\$pf.pdb", "$target\\bin\\$pf.pdb")
+ || croak "Could not copy $pf.pdb\n";
+ print ".";
+ }
}
print "\n";
return;