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

Commit976a9bb

Browse files
committed
MSVC: Place gendef.pl temporary file in the target directory.
Until now, it used the current working directory. This makes it safefor simultaneous invocations of gendef.pl, with different targetdirectories, to run from a single current working directory, such as$(top_srcdir). The MSVC build system will soon rely on this.Christian Ullrich, reviewed by Michael Paquier.
1 parentc9cf432 commit976a9bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/tools/msvc/gendef.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use warnings;
44
use strict;
55
use 5.8.0;
6+
use File::Spec::Functionsqw(splitpath catpath);
67
use List::Utilqw(max);
78

89
#
@@ -14,9 +15,11 @@
1415
subdumpsyms
1516
{
1617
my ($objfile,$symfile) =@_;
17-
system("dumpbin /symbols /out:symbols.out$_ >NUL")
18+
my ($symvol,$symdirs,$symbase) = splitpath($symfile);
19+
my$tmpfile = catpath($symvol,$symdirs,"symbols.out");
20+
system("dumpbin /symbols /out:$tmpfile$_ >NUL")
1821
&&die"Could not call dumpbin";
19-
rename("symbols.out",$symfile);
22+
rename($tmpfile,$symfile);
2023
}
2124

2225
# Given a symbol file path, loops over its contents

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp