Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 854adb8

Browse files
committed
Replace backslashes by forward slashes in MSVC build code
This makes it possible to run some stages of these build scripts on non-Windows systems. That way, we can more easily test whether file moves or makefile changes might break the MSVC build. Peter Eisentraut and Michael Paquier
1 parent 410cbfd commit 854adb8

File tree

4 files changed

+262
-264
lines changed

4 files changed

+262
-264
lines changed

src/tools/msvc/MSBuildProject.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ EOF
127127
foreach my $fileNameWithPath (sort keys %{ $self->{files} })
128128
{
129129
confess "Bad format filename '$fileNameWithPath'\n"
130-
unless ($fileNameWithPath =~ /^(.*)\\([^\\]+)\.(c|cpp|y|l|rc)$/);
130+
unless ($fileNameWithPath =~ m!^(.*)/([^/]+)\.(c|cpp|y|l|rc)$!);
131131
my $dir = $1;
132132
my $fileName = $2;
133133
if ($fileNameWithPath =~ /\.y$/ or $fileNameWithPath =~ /\.l$/)

0 commit comments

Comments
 (0)