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

Commita86a9bf

Browse files
committed
Remaining pieces of fix for contrib makefiles
1 parent125ed68 commita86a9bf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

‎src/tools/msvc/Mkvcbuild.pm

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Mkvcbuild;
33
#
44
# Package that generates build files for msvc build
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.28 2008/05/09 16:01:05 adunstan Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.29 2008/05/10 15:30:11 adunstan Exp $
77
#
88
use Carp;
99
use Win32;
@@ -414,8 +414,10 @@ sub AddContrib
414414
$mf2 =~s{\\\s*[\r\n]+}{}mg;
415415
$mf2 =~/^SUBOBJS\s*=\s*(.*)$/gm
416416
|| croak"Could not find objects in MODULE_big for$n, subdir$d\n";
417-
foreachmy$o (split /\s+/,$1)
418-
{
417+
$objs =$1;
418+
while ($objs =~/\b([\w-]+\.o)\b/g)
419+
{
420+
my$o =$1;
419421
$o =~s/\.o$/.c/;
420422
$proj->AddFile('contrib\\' .$n .'\\' .$d .'\\' .$o);
421423
}
@@ -437,8 +439,10 @@ sub AddContrib
437439
{
438440
my$proj =$solution->AddProject($1,'exe','contrib');
439441
$mf =~/^OBJS\s*=\s*(.*)$/gm || croak"Could not find objects in MODULE_big for$n\n";
440-
foreachmy$o (split /\s+/,$1)
442+
my$objs =$1;
443+
while ($objs =~/\b([\w-]+\.o)\b/g)
441444
{
445+
my$o =$1;
442446
$o =~s/\.o$/.c/;
443447
$proj->AddFile('contrib\\' .$n .'\\' .$o);
444448
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp