Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mXq2Z-0004du-PZ for mharc-qemu-trivial@gnu.org; Tue, 05 Oct 2021 15:23:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXq2Y-0004dI-65 for qemu-trivial@nongnu.org; Tue, 05 Oct 2021 15:23:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:53255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXq2V-0000Uw-Mw for qemu-trivial@nongnu.org; Tue, 05 Oct 2021 15:23:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633461826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I6GXgADJSn80WyAcxhnUJonTxSh8VA6XQEYzYniOwP8=; b=DXWZUy2CngccTRpKiS8wXAFuqkkMl35OBXa7L29NQPTSAIG99u2iuhseMU7Rx6ThqOiMgN 4/uGCRNO16v+oxmSoflE6rxXTsuljL6353rTYXhrpY1Iwix6al58PKfj9p1uhPdmY9F++5 mWa7s4ki/PPF8G1QzgTmzOS2P1f79m4= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-I8cTfFtyOuCU8JaBtLvXVQ-1; Tue, 05 Oct 2021 15:23:43 -0400 X-MC-Unique: I8cTfFtyOuCU8JaBtLvXVQ-1 Received: by mail-ed1-f72.google.com with SMTP id r11-20020aa7cfcb000000b003d4fbd652b9so210836edy.14 for ; Tue, 05 Oct 2021 12:23:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=I6GXgADJSn80WyAcxhnUJonTxSh8VA6XQEYzYniOwP8=; b=bflhwOW0qVgjfnv09j7fUHpq3C70FuHmzW8N17T/oK5vX1nu8gsRrn6USZOVNUELwl 3Mhw0sR89jVZvaQw7ITgu+ELvu8956mL6lTFBntUnEBBMBTNIxICkFvEay7Hyp4AkbWx 0HJ2rpXFIkILBY75cHPbZSw36LaCyb5Wat/fh+FhzodecVmLJ9ODmmP42JWwGXNmfrKZ LnQrche4Kyo4kdVqaTYNF8065xHm9nd175NPwpaD9+DvCkLuU/HgTrcKX/jYEBSxZCc7 4RMwgK+X2Is45ppOIfwjfnR2yj5dVzMHvlmMufmD1Rp7nu33acyL/05ABJaNY7PQihNO ucCQ== X-Gm-Message-State: AOAM530poMAcfkHhVO1R2wMrpzPyygEHhavKb6hLDs3ab+hhqRzWri4F Xg6R6DH6+gOsN6knwaCozCG0zH/tAeulsFnoHps1FQYjAL122QXrV12plx8lM8cqJVMvkGRatwa oNMBeYqtoNSWF8qJgRw== X-Received: by 2002:a17:906:1682:: with SMTP id s2mr27831622ejd.66.1633461821879; Tue, 05 Oct 2021 12:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznjOUnvEqH151iP1kb7rTnkTpaZ7GM0vXSpJcjnB24Omwd4qil/UdebSpyGnC9DHoBGPFmWA== X-Received: by 2002:a17:906:1682:: with SMTP id s2mr27831587ejd.66.1633461821610; Tue, 05 Oct 2021 12:23:41 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id r22sm8032072ejj.91.2021.10.05.12.23.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Oct 2021 12:23:41 -0700 (PDT) Message-ID: Date: Tue, 5 Oct 2021 21:23:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH 1/2] bsd-user: Only process meson rules on BSD host To: Peter Maydell , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Cc: QEMU Trivial , Kyle Evans , Richard Henderson , QEMU Developers , Laurent Vivier , Warner Losh References: <20210926220103.1721355-1-f4bug@amsat.org> <20210926220103.1721355-2-f4bug@amsat.org> From: Paolo Bonzini In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.066, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2021 19:23:50 -0000 On 27/09/21 11:54, Peter Maydell wrote: > True, but "meson.build is evaluated but just does nothing or > adds files to a sourceset that isn't used" is pretty common > (hw/pci/meson.build is evaluated even if we're not building > a system with PCI support, for example). Selection of files from hw/pci/meson.build is based on per-target definitions, so there's no way around when:/if_true:. (Technically, hw/pci/meson.build also as an if_false, so there's *really* no way around parsing it). Instead, when the definition is constant across all targets, it is possible to use either when:/if_true: or an "if" as in if have_user util_ss.add(files('selfmap.c')) endif or the various "if m[0].found()" found in directories that build shared modules. In this case I personally lean more towards the latter, but when:/if_true: is a little more compact so both are acceptable. Paolo