From: Philippe Mathieu-Daudé Date: Tue, 15 Feb 2022 16:25:03 +0000 (+0100) Subject: meson: Resolve the entitlement.sh script once for good X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=30cfa50da53f60283e2e7f3bf0856189a06bb952;p=qemu.git meson: Resolve the entitlement.sh script once for good Commit 235b523dba ("meson: Use find_program() to resolve the entitlement.sh script") didn't correctly fixed the issue, as the script is still resolved for each target. Move the check earlier, before processing each target. Reviewed-by: Akihiko Odaki Tested-by: Akihiko Odaki Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/meson.build b/meson.build index 351f9f4360..6e8fa4ab31 100644 --- a/meson.build +++ b/meson.build @@ -3073,6 +3073,10 @@ common_all = static_library('common', feature_to_c = find_program('scripts/feature_to_c.sh') +if targetos == 'darwin' + entitlement = find_program('scripts/entitlement.sh') +endif + emulators = {} foreach target : target_dirs config_target = config_target_mak[target] @@ -3230,7 +3234,6 @@ foreach target : target_dirs install_input += meson.current_source_dir() / entitlements endif - entitlement = find_program('scripts/entitlement.sh') emulators += {exe['name'] : custom_target(exe['name'], input: build_input, output: exe['name'],