Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8062093

Browse files
committed
meson: Narrow dependencies for 'install-quiet' target
Previously test dependencies, which are not actually installed, were unnecessarily built. Apply this to all branches with meson support, as part of an effort to fix incorrect test dependencies that can lead to test failures. Discussion: https://postgr.es/m/CAGECzQSvM3iSDmjF+=Kof5an6jN8UbkP_4cKKT9w6GZavmb5yQ@mail.gmail.com Discussion: https://postgr.es/m/[email protected] Backpatch: 16-, where meson support was added
1 parent d54d566 commit 8062093

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

meson.build

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3112,24 +3112,30 @@ if libintl.found() and meson.version().version_compare('>=0.60')
31123112
endif
31133113

31143114

3115-
all_built = [
3115+
# all targets that 'meson install' needs
3116+
installed_targets = [
31163117
backend_targets,
31173118
bin_targets,
31183119
libpq_st,
31193120
pl_targets,
31203121
contrib_targets,
31213122
nls_mo_targets,
3122-
testprep_targets,
31233123
ecpg_targets,
31243124
]
31253125

3126+
# all targets that require building code
3127+
all_built = [
3128+
installed_targets,
3129+
testprep_targets,
3130+
]
3131+
31263132
# Meson's default install target is quite verbose. Provide one that is quiet.
31273133
install_quiet = custom_target('install-quiet',
31283134
output: 'install-quiet',
31293135
build_always_stale: true,
31303136
build_by_default: false,
31313137
command: [meson_bin, meson_args, 'install', '--quiet', '--no-rebuild'],
3132-
depends: all_built,
3138+
depends: installed_targets,
31333139
)
31343140

31353141
# Target to install files used for tests, which aren't installed by default

0 commit comments

Comments
 (0)