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 1 commit
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
Prev Previous commit
proper meson error when problem of version
bilhox committed Oct 16, 2024
commit 7462c774e3234d1a69abbae2b2a72a87927e407d
16 changes: 11 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
@@ -194,12 +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
try
install_data(dlls, install_dir: pg_dir, install_tag: 'pg-tag')
catch(e)
error(e.message + '\n' + 'Please try to delete "prebuilt_downloads/", "prebuilt-x64/" and "prebuilt-x86/" directories and retry the installation.')
endtry
install_data(dlls, install_dir: pg_dir, install_tag: 'pg-tag')

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