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

Commite3a8925

Browse files
committed
meson: windows: Normalize slashes in prefix
This fixes a build issue on windows, when the prefix is set to a path withforward slashes. Windows python defaults to a path with a backslash, but mingwucrt python defaults to a forward slash. This in turn lead to a wrong PATH setduring tests, causing tests to fail.Reported-by: Melih Mutlu <m.melihmutlu@gmail.com>Discussion:http://postgr.es/m/20220928022724.erzuk5v4ai4b53do@awork3.anarazel.de
1 parent2beae72 commite3a8925

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎meson.build‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,15 +2733,15 @@ endif
27332733

27342734
prefix=get_option('prefix')
27352735

2736-
test_prefix= prefix
2736+
test_prefix=fs.as_posix(prefix)
27372737

27382738
if fs.is_absolute(get_option('prefix'))
27392739
if host_system=='windows'
2740-
if prefix.split(':\\').length()==1
2740+
if prefix.split(':/').length()==1
27412741
# just a drive
27422742
test_prefix=''
27432743
else
2744-
test_prefix= prefix.split(':\\')[1]
2744+
test_prefix= prefix.split(':/')[1]
27452745
endif
27462746
else
27472747
assert(prefix.startswith('/'))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp