Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better meson error on windows when libraries versions are not correct #3178

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,18 @@ if plat == 'win' and host_machine.cpu_family().startswith('x86')
check: true,
)

foreach lib : dlls
if not fs.exists(lib)
error(f'''
File "@lib@" does not exist.
Please try to delete "prebuilt_downloads/", "prebuilt-x64/" and "prebuilt-x86/" directories, and retry the installation.
''')
endif
endforeach

# put dlls in root of install
install_data(dlls, install_dir: pg_dir, install_tag: 'pg-tag')

else
bases = ['/usr/local', '/usr', '/opt/homebrew', '/opt/local']
foreach inc_dir : bases
Expand Down
Loading