|
From: | Paolo Bonzini |
Subject: | Re: [PATCH] meson: remove unnecessary coreaudio test program |
Date: | Tue, 2 Nov 2021 12:51:26 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
On 02/11/21 12:49, Peter Maydell wrote:
coreaudio = dependency('appleframeworks', modules: 'CoreAudio', required: get_option('coreaudio')) - if coreaudio.found() and not cc.links(''' - #include <CoreAudio/CoreAudio.h> - int main(void) - { - return (int)AudioGetCurrentHostTime(); - }''') - coreaudio = not_found - endif - - if not coreaudio.found() - if get_option('coreaudio').enabled() - error('CoreAudio not found') - else - warning('CoreAudio not found, disabling') - endif - endif endifDon't we still want if not coreaudio.found() if get_option('coreaudio').enabled() error('CoreAudio not found') endif endif
No, the "required: get_option('coreaudio')" takes care of both forced enabling and forced disabling.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |