Skip to content

Commit 5af69f9

Browse files
authored
Better meson error on windows when libraries versions are not correct (#3178)
* try except * proper meson error when problem of version
1 parent 9218eb2 commit 5af69f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

meson.build

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,18 @@ if plat == 'win' and host_machine.cpu_family().startswith('x86')
194194
check: true,
195195
)
196196

197+
foreach lib : dlls
198+
if not fs.exists(lib)
199+
error(f'''
200+
File "@lib@" does not exist.
201+
Please try to delete "prebuilt_downloads/", "prebuilt-x64/" and "prebuilt-x86/" directories, and retry the installation.
202+
''')
203+
endif
204+
endforeach
205+
197206
# put dlls in root of install
198207
install_data(dlls, install_dir: pg_dir, install_tag: 'pg-tag')
208+
199209
else
200210
bases = ['/usr/local', '/usr', '/opt/homebrew', '/opt/local']
201211
foreach inc_dir : bases

0 commit comments

Comments
 (0)