Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita194106

Browse files
committed
MSVC builds must use a separate stamp file for copying generated headers.
Commitbad51a4 tried to use a shortcut with just one stamp filerecording the actions of generating the pg_*_d.h headers and copyingthem to the src/include/catalog/ directory. That doesn't work in allscenarios though, so we must use two stamp files like the Makefiles do.John NaylorDiscussion:https://postgr.es/m/CANFyU944GdHr=puPbA78STnqr=8kgMrGF-VDHck6aO_-qNDALg@mail.gmail.com
1 parent3dacd9b commita194106

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎src/tools/msvc/Solution.pm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,12 @@ EOF
501501
|| confess"Could not touch bki-stamp";
502502
close($f);
503503
chdir('../../..');
504+
}
504505

506+
if (IsNewer(
507+
'src/include/catalog/header-stamp',
508+
'src/backend/catalog/bki-stamp'))
509+
{
505510
# Copy generated headers to include directory.
506511
opendir(my$dh,'src/backend/catalog/')
507512
||die"Can't opendir src/backend/catalog/$!";
@@ -516,6 +521,9 @@ EOF
516521
copyFile(
517522
'src/backend/catalog/schemapg.h',
518523
'src/include/catalog/schemapg.h');
524+
open(my$chs,'>','src/include/catalog/header-stamp')
525+
|| confess"Could not touch header-stamp";
526+
close($chs);
519527
}
520528

521529
open(my$o,'>',"doc/src/sgml/version.sgml")

‎src/tools/msvc/clean.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if exist src\include\storage\lwlocknames.h del /q src\include\storage\lwlockname
4949
ifexist src\include\utils\probes.hdel /q src\include\utils\probes.h
5050
ifexist src\include\catalog\schemapg.hdel /q src\include\catalog\schemapg.h
5151
ifexist src\include\catalog\pg_*_d.hdel /q src\include\catalog\pg_*_d.h
52+
ifexist src\include\catalog\header-stampdel /q src\include\catalog\header-stamp
5253
ifexist doc\src\sgml\version.sgmldel /q doc\src\sgml\version.sgml
5354

5455
if%DIST%==1ifexist src\backend\utils\fmgroids.hdel /q src\backend\utils\fmgroids.h

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp