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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy