From nobody Sat Feb 7 05:52:53 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1650471246859225.25939720727013; Wed, 20 Apr 2022 09:14:06 -0700 (PDT) Received: from localhost ([::1]:33068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhCxx-0003mV-Hv for importer@patchew.org; Wed, 20 Apr 2022 12:14:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhCLy-00020F-DR for qemu-devel@nongnu.org; Wed, 20 Apr 2022 11:34:50 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:33312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhCLw-0000zw-NC for qemu-devel@nongnu.org; Wed, 20 Apr 2022 11:34:50 -0400 Received: by mail-wr1-x42e.google.com with SMTP id x18so2829383wrc.0 for ; Wed, 20 Apr 2022 08:34:48 -0700 (PDT) Received: from avogadro.lan ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id n68-20020a1c2747000000b0038e6b4d5395sm130401wmn.16.2022.04.20.08.34.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 08:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eN2PNaIJxUfg9ceUBiK92oB3fGuFQedFi7c0jPCnfIc=; b=maadqJpuYm6X+pncmMoPZK4yF9G8LUeSF5Rg+5BOEfw35TnNEn3qClCIs0r8PVMT/T tUayYds9nMghjeTo7EHQgB5W6QK9p6ghwTn953ACXRKrtagpBqQo+P08WEzWXpUgt3/r k9TFgX7TP8VsvmsUrZCalpwOnk/uWJNere/RVgTuIPGi9TZSfYadev06IaywxwhOK9Ew YNyiShVVOR5ssji1DgH1M4/P15w2PVbUZVTPdpQ697JSGhodjTTtJ4xLMLDRisjfy/tr BOZCvDHoJeV1kdiygvZs+A9k0ypV7k48PsLRcYGCabwqWhhyIxfWCyspDs9xVdQ0E+b0 jKQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=eN2PNaIJxUfg9ceUBiK92oB3fGuFQedFi7c0jPCnfIc=; b=H+CwyBX97DHb164KVv0blxqjjXc2gwzxJvRTedBRPqW3ujlNFeuchAVCIdU3PNWbQW Sq1QwKnwqd9fgqv1GT2drmMjv4xR3WB2G/5fkbS0+tV1lhP+kqZABDn6pqttQnTyiLLD 9Jd6DRLqip6OwDVV61l2P36fR3DJrR2BpgCdERE05uKM/j/mbiqxZmVwMyBjAWiIR2zU eQB4JAAyX8pLrF9jwiH2OkwBNYtFwyxkW0+Hf0XTAfT1YDRnxmwHqwjzVl5+qcTrTSlT GHLOLlu3hEWtBgu9JPJePvUKNglLFO/oNzYuD9avc50bRJZLydzinmi/KMHiQ7BUD/Ky B9Og== X-Gm-Message-State: AOAM531+btBBOr+szuRbB10Ly/2hxX5hfrck7FWpqhU5QFfWJYkIy3rk s5IJZznMpuYqWvENxPGpFGYG3PmT6oDWDw== X-Google-Smtp-Source: ABdhPJwG49+y/UqLW3fcarI0FXq86H9YqjGn32mj9o0KHt2qrG+OALdcMn8SIM2zWHidgTbjPjltYw== X-Received: by 2002:adf:f046:0:b0:207:a457:5e52 with SMTP id t6-20020adff046000000b00207a4575e52mr15932476wro.708.1650468887393; Wed, 20 Apr 2022 08:34:47 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 26/34] configure: omit options with default values from meson command line Date: Wed, 20 Apr 2022 17:33:59 +0200 Message-Id: <20220420153407.73926-27-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220420153407.73926-1-pbonzini@redhat.com> References: <20220420153407.73926-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=paolo.bonzini@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1650471248365100001 Content-Type: text/plain; charset="utf-8" This has no functional change, it only makes the command line shorter and nicer. Signed-off-by: Paolo Bonzini --- configure | 29 +++++++++++++++++------------ meson.build | 2 +- meson_options.txt | 2 +- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/configure b/configure index 4997983b5d..61b5acae10 100755 --- a/configure +++ b/configure @@ -2349,19 +2349,24 @@ if test "$skip_meson" =3D no; then mv $cross config-meson.cross =20 rm -rf meson-private meson-info meson-logs + + # Built-in options + test "$bindir" !=3D "bin" && meson_option_add "-Dbindir=3D$bindir" + test "$default_feature" =3D no && meson_option_add -Dauto_features=3Ddis= abled + test "$pie" =3D no && meson_option_add -Db_pie=3Dfalse + test "$werror" =3D yes && meson_option_add -Dwerror=3Dtrue + + # QEMU options + test "$capstone" !=3D auto && meson_option_add "-Dcapstone=3D$capstone" + test "$cfi" !=3D false && meson_option_add "-Dcfi=3D$cfi" + test "$fdt" !=3D auto && meson_option_add "-Dfdt=3D$fdt" + test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add "-Dfuzzing_engin= e=3D$LIB_FUZZING_ENGINE" + test "$qemu_suffix" !=3D qemu && meson_option_add "-Dqemu_suffix=3D$qemu= _suffix" + test "$slirp" !=3D auto && meson_option_add "-Dslirp=3D$slirp" + test "$smbd" !=3D '' && meson_option_add "-Dsmbd=3D$smbd" + test "$tcg" !=3D enabled && meson_option_add "-Dtcg=3D$tcg" run_meson() { - NINJA=3D$ninja $meson setup \ - --prefix "$prefix" \ - --bindir "$bindir" \ - -Dqemu_suffix=3D"$qemu_suffix" \ - -Dsmbd=3D"$smbd" \ - -Dwerror=3D$(if test "$werror" =3D yes; then echo true; else echo = false; fi) \ - -Db_pie=3D$(if test "$pie" =3D yes; then echo true; else echo fals= e; fi) \ - -Dcfi=3D$cfi -Dtcg=3D$tcg \ - -Dcapstone=3D$capstone -Dfdt=3D$fdt -Dslirp=3D$slirp \ - $(test -n "${LIB_FUZZING_ENGINE+xxx}" && echo "-Dfuzzing_engine=3D= $LIB_FUZZING_ENGINE") \ - $(if test "$default_feature" =3D no; then echo "-Dauto_features=3D= disabled"; fi) \ - "$@" $cross_arg "$PWD" "$source_path" + NINJA=3D$ninja $meson setup --prefix "$prefix" "$@" $cross_arg "$PWD" = "$source_path" } eval run_meson $meson_options if test "$?" -ne 0 ; then diff --git a/meson.build b/meson.build index 60e8c302e6..ff5c076805 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('qemu', ['c'], meson_version: '>=3D0.59.3', default_options: ['warning_level=3D1', 'c_std=3Dgnu11', 'cpp_std= =3Dgnu++11', 'b_colorout=3Dauto', - 'b_staticpic=3Dfalse', 'stdsplit=3Dfalse', 'opti= mization=3D2'], + 'b_staticpic=3Dfalse', 'stdsplit=3Dfalse', 'opti= mization=3D2', 'b_pie=3Dtrue'], version: files('VERSION')) =20 add_test_setup('quick', exclude_suites: ['slow', 'thorough'], is_default: = true) diff --git a/meson_options.txt b/meson_options.txt index a76fadbd7d..8efd5f520c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -78,7 +78,7 @@ option('xen', type: 'feature', value: 'auto', description: 'Xen backend support') option('xen_pci_passthrough', type: 'feature', value: 'auto', description: 'Xen PCI passthrough support') -option('tcg', type: 'feature', value: 'auto', +option('tcg', type: 'feature', value: 'enabled', description: 'TCG support') option('tcg_interpreter', type: 'boolean', value: false, description: 'TCG with bytecode interpreter (slow)') --=20 2.35.1