aboutsummaryrefslogtreecommitdiff
path: root/ports/libpq/patches/windows/fix-compile-flag-Zi.patch
blob: 04d86811e954aefec41d3bb4f2f2a9bf440f8eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
@@ -333,7 +333,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
@@ -341,9 +341,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;