From nobody Tue Nov 18 16:50:55 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1611223020; cv=none; d=zohomail.com; s=zohoarc; b=JAkQLkGt7DdPT9KUqWbLoZgPl8IccPbcdup6QPVoNLd7U9/+XCPS72jB9QszXjbfNZrj516ynSKQQvk/KS82frPwdCARIAOIXElJG3IqqYiBCefugzGy/uM8ZFjJt1IQIqJS8fzJSR5YryGp1ZT/lCU3l0o8Y6JllQwzb2/xCk4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611223020; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=1SzV1XJWUrs+3Hbd6rgw2jk3AnTycYzM33TBBMwY4GI=; b=Ptq7fOMtl0B33RXl54XLXFHkwoiua3VZxjA21bC1vdEbS7SwOT7EaSO6I5wq3imIBtzPaNKBhE+wFRyv0VBWa01bbPunfJJ//pNi4Q2wauUoVYNpdFWfq+s5sHc4o0c3SpiqAuqS3OY0eZiM3iHJeMkVbhRcIh6kau2u4Mnop54= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1611223020212803.252477213851; Thu, 21 Jan 2021 01:57:00 -0800 (PST) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-130-ttmkHXVsMkSos_K1dAp64Q-1; Thu, 21 Jan 2021 04:56:57 -0500 Received: by mail-ed1-f70.google.com with SMTP id 32so811653edy.22 for ; Thu, 21 Jan 2021 01:56:56 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id z25sm2010982ejd.23.2021.01.21.01.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 01:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611223018; 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=1SzV1XJWUrs+3Hbd6rgw2jk3AnTycYzM33TBBMwY4GI=; b=YX4TX1+Q1LnGBh7okU8Nu/LWv2m2BI/xbvIBYcDzWzAjvCiLuQVzmWAp1swxzFg2I3QppE fi/Qr6z2J4vTPUY+NnEjoXHZr7uGJhN/j+OyvVSUPO0KSA4J65na6aOQpeATgK20pZOK0h HhH2wOZyNmUXx5hdtHfjD4RrcHMBV0E= X-MC-Unique: ttmkHXVsMkSos_K1dAp64Q-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1SzV1XJWUrs+3Hbd6rgw2jk3AnTycYzM33TBBMwY4GI=; b=eqlwTH2MKStWa4T0Ww8n+kM7OSBi57j1PszIRRlwZYMt15YHreRljt76z7DzeNQs2Y X4k9aCYFgEpuy0Y23bV/3fltJCUcyZSRAzY1tPSqrZqeXQtKFuSZmKDRjc4AHw3yXcio h8rVy5Bnbxey+krwIC1eyqcYld1/MaWOQmrHLPMHZ+kiDvce2NzhC83wzYBQipGzZGbx Fh5iC48R/Q9ZEJGx87fkXXnO/S5DYzLFOQ0vYuAAVa+kdywcD6lgn3/f6IGORQHFEfWS sW+blulU8R5npKpcXAa4gcBX6QETg/cVIqBtbKKZ1fawnfkZl+vpXRkCxdvhKKZ21TQt 25FA== X-Gm-Message-State: AOAM531xmc7y2AiFlECEWEeHqkRlBe/oCbmzbI6MrSc8swfUaCx76KWJ xn3Z52qyf1dzKVzZR8W8+Miuw7khwYrfx6M/ASb9BuEiICLXYznUhxPfs/7LHNt5D7pr+fDs+r5 vUKQOGG1e36Gesg== X-Received: by 2002:a17:907:e9e:: with SMTP id ho30mr8986094ejc.529.1611223015646; Thu, 21 Jan 2021 01:56:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVvwWR9ExfnuaEDs5Q4q7xQOV/G7NGm8P7b6P3h8vEqLn0fQ4aUMIMzuxMRh6teBMxq8e8dA== X-Received: by 2002:a17:907:e9e:: with SMTP id ho30mr8986085ejc.529.1611223015434; Thu, 21 Jan 2021 01:56:55 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 4/8] meson: Summarize compilation-related information altogether Date: Thu, 21 Jan 2021 10:56:12 +0100 Message-Id: <20210121095616.1471869-5-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210121095616.1471869-1-philmd@redhat.com> References: <20210121095616.1471869-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- meson.build | 63 +++++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/meson.build b/meson.build index 4b600315ba4..194b8523f77 100644 --- a/meson.build +++ b/meson.build @@ -2341,7 +2341,10 @@ endif summary(summary_info, bool_yn: true, section: 'Overall') =20 +# Compilation information summary_info =3D {} +summary_info +=3D {'host CPU': cpu} +summary_info +=3D {'host endianness': build_machine.endian()} summary_info +=3D {'C compiler': meson.get_compiler('c').cmd_array(= )[0]} summary_info +=3D {'Host C compiler': meson.get_compiler('c', native: tr= ue).cmd_array()[0]} if link_language =3D=3D 'cpp' @@ -2352,6 +2355,11 @@ if targetos =3D=3D 'darwin' summary_info +=3D {'Objective-C compiler': meson.get_compiler('objc').cm= d_array()[0]} endif +if targetos =3D=3D 'windows' + if 'WIN_SDK' in config_host + summary_info +=3D {'Windows SDK': config_host['WIN_SDK']} + endif +endif summary_info +=3D {'ARFLAGS': config_host['ARFLAGS']} summary_info +=3D {'CFLAGS': ' '.join(get_option('c_args') + ['-O' + get_option('optim= ization')] @@ -2367,16 +2375,36 @@ endif summary_info +=3D {'QEMU_CFLAGS': config_host['QEMU_CFLAGS']} summary_info +=3D {'QEMU_LDFLAGS': config_host['QEMU_LDFLAGS']} -# TODO: add back version -summary_info +=3D {'host CPU': cpu} -summary_info +=3D {'host endianness': build_machine.endian()} -summary_info +=3D {'target list': ' '.join(target_dirs)} -summary_info +=3D {'gprof enabled': config_host.has_key('CONFIG_GPROF'= )} -summary_info +=3D {'sparse enabled': sparse.found()} -summary_info +=3D {'strip binaries': get_option('strip')} summary_info +=3D {'profiler': config_host.has_key('CONFIG_PROFIL= ER')} summary_info +=3D {'link-time optimization (LTO)': get_option('b_lto')} +summary_info +=3D {'PIE': get_option('b_pie')} summary_info +=3D {'static build': config_host.has_key('CONFIG_STATIC= ')} +summary_info +=3D {'malloc trim support': has_malloc_trim} +summary_info +=3D {'membarrier': config_host.has_key('CONFIG_MEMBAR= RIER')} +summary_info +=3D {'preadv support': config_host.has_key('CONFIG_PREADV= ')} +summary_info +=3D {'fdatasync': config_host.has_key('CONFIG_FDATAS= YNC')} +summary_info +=3D {'madvise': config_host.has_key('CONFIG_MADVIS= E')} +summary_info +=3D {'posix_madvise': config_host.has_key('CONFIG_POSIX_= MADVISE')} +summary_info +=3D {'posix_memalign': config_host.has_key('CONFIG_POSIX_= MEMALIGN')} +summary_info +=3D {'debug stack usage': config_host.has_key('CONFIG_DEBUG_= STACK_USAGE')} +summary_info +=3D {'mutex debugging': config_host.has_key('CONFIG_DEBUG_= MUTEX')} +summary_info +=3D {'memory allocator': get_option('malloc')} +summary_info +=3D {'avx2 optimization': config_host.has_key('CONFIG_AVX2_O= PT')} +summary_info +=3D {'avx512f optimization': config_host.has_key('CONFIG_AVX= 512F_OPT')} +summary_info +=3D {'gprof enabled': config_host.has_key('CONFIG_GPROF'= )} +summary_info +=3D {'gcov': get_option('b_coverage')} +summary_info +=3D {'thread sanitizer': config_host.has_key('CONFIG_TSAN')} +summary_info +=3D {'CFI support': get_option('cfi')} +if get_option('cfi') + summary_info +=3D {'CFI debug support': get_option('cfi_debug')} +endif +summary_info +=3D {'strip binaries': get_option('strip')} +summary_info +=3D {'mingw32 support': targetos =3D=3D 'windows'} +summary(summary_info, bool_yn: true, section: 'Compilation') + +summary_info =3D {} +summary_info +=3D {'target list': ' '.join(target_dirs)} +summary_info +=3D {'sparse enabled': sparse.found()} if targetos =3D=3D 'darwin' summary_info +=3D {'Cocoa support': cocoa.found()} endif @@ -2408,7 +2436,6 @@ # TODO: add back version summary_info +=3D {'virgl support': config_host.has_key('CONFIG_VIRGL'= )} summary_info +=3D {'curl support': curl.found()} -summary_info +=3D {'mingw32 support': targetos =3D=3D 'windows'} summary_info +=3D {'Block whitelist (rw)': config_host['CONFIG_BDRV_RW_WHI= TELIST']} summary_info +=3D {'Block whitelist (ro)': config_host['CONFIG_BDRV_RO_WHI= TELIST']} summary_info +=3D {'VirtFS support': have_virtfs} @@ -2425,7 +2452,6 @@ summary_info +=3D {'xen ctrl version': config_host['CONFIG_XEN_CTRL_INT= ERFACE_VERSION']} endif summary_info +=3D {'brlapi support': brlapi.found()} -summary_info +=3D {'PIE': get_option('b_pie')} summary_info +=3D {'vde support': config_host.has_key('CONFIG_VDE')} summary_info +=3D {'netmap support': config_host.has_key('CONFIG_NETMAP= ')} summary_info +=3D {'Linux AIO support': config_host.has_key('CONFIG_LINUX_= AIO')} @@ -2440,16 +2466,9 @@ summary_info +=3D {'TCG debug enabled': config_host.has_key('CONFIG_DEBU= G_TCG')} summary_info +=3D {'TCG interpreter': config_host.has_key('CONFIG_TCG_= INTERPRETER')} endif -summary_info +=3D {'malloc trim support': has_malloc_trim} summary_info +=3D {'RDMA support': config_host.has_key('CONFIG_RDMA')} summary_info +=3D {'PVRDMA support': config_host.has_key('CONFIG_PVRDMA= ')} summary_info +=3D {'fdt support': fdt_opt =3D=3D 'disabled' ? false = : fdt_opt} -summary_info +=3D {'membarrier': config_host.has_key('CONFIG_MEMBAR= RIER')} -summary_info +=3D {'preadv support': config_host.has_key('CONFIG_PREADV= ')} -summary_info +=3D {'fdatasync': config_host.has_key('CONFIG_FDATAS= YNC')} -summary_info +=3D {'madvise': config_host.has_key('CONFIG_MADVIS= E')} -summary_info +=3D {'posix_madvise': config_host.has_key('CONFIG_POSIX_= MADVISE')} -summary_info +=3D {'posix_memalign': config_host.has_key('CONFIG_POSIX_= MEMALIGN')} summary_info +=3D {'libcap-ng support': libcap_ng.found()} summary_info +=3D {'vhost-kernel support': config_host.has_key('CONFIG_VHO= ST_KERNEL')} summary_info +=3D {'vhost-net support': config_host.has_key('CONFIG_VHOST_= NET')} @@ -2474,23 +2493,15 @@ summary_info +=3D {'libnfs support': libnfs.found()} summary_info +=3D {'build guest agent': config_host.has_key('CONFIG_GUEST_= AGENT')} if targetos =3D=3D 'windows' - if 'WIN_SDK' in config_host - summary_info +=3D {'Windows SDK': config_host['WIN_SDK']} - endif summary_info +=3D {'QGA VSS support': config_host.has_key('CONFIG_QGA_= VSS')} summary_info +=3D {'QGA w32 disk info': config_host.has_key('CONFIG_QGA_= NTDDSCSI')} summary_info +=3D {'QGA MSI support': config_host.has_key('CONFIG_QGA_= MSI')} endif summary_info +=3D {'seccomp support': seccomp.found()} -summary_info +=3D {'CFI support': get_option('cfi')} -summary_info +=3D {'CFI debug support': get_option('cfi_debug')} summary_info +=3D {'coroutine backend': config_host['CONFIG_COROUTINE_BACK= END']} summary_info +=3D {'coroutine pool': config_host['CONFIG_COROUTINE_POOL= '] =3D=3D '1'} -summary_info +=3D {'debug stack usage': config_host.has_key('CONFIG_DEBUG_= STACK_USAGE')} -summary_info +=3D {'mutex debugging': config_host.has_key('CONFIG_DEBUG_= MUTEX')} summary_info +=3D {'crypto afalg': config_host.has_key('CONFIG_AF_ALG= ')} summary_info +=3D {'GlusterFS support': glusterfs.found()} -summary_info +=3D {'gcov': get_option('b_coverage')} summary_info +=3D {'TPM support': config_host.has_key('CONFIG_TPM')} summary_info +=3D {'libssh support': config_host.has_key('CONFIG_LIBSSH= ')} summary_info +=3D {'QOM debugging': config_host.has_key('CONFIG_QOM_CA= ST_DEBUG')} @@ -2502,9 +2513,6 @@ summary_info +=3D {'zstd support': zstd.found()} summary_info +=3D {'NUMA host support': config_host.has_key('CONFIG_NUMA')} summary_info +=3D {'libxml2': config_host.has_key('CONFIG_LIBXML= 2')} -summary_info +=3D {'memory allocator': get_option('malloc')} -summary_info +=3D {'avx2 optimization': config_host.has_key('CONFIG_AVX2_O= PT')} -summary_info +=3D {'avx512f optimization': config_host.has_key('CONFIG_AVX= 512F_OPT')} summary_info +=3D {'replication support': config_host.has_key('CONFIG_REPL= ICATION')} summary_info +=3D {'bochs support': config_host.has_key('CONFIG_BOCHS'= )} summary_info +=3D {'cloop support': config_host.has_key('CONFIG_CLOOP'= )} @@ -2520,7 +2528,6 @@ summary_info +=3D {'libdaxctl support': config_host.has_key('CONFIG_LIBDAX= CTL')} summary_info +=3D {'libudev': libudev.found()} summary_info +=3D {'default devices': get_option('default_devices')} -summary_info +=3D {'thread sanitizer': config_host.has_key('CONFIG_TSAN')} summary_info +=3D {'rng-none': config_host.has_key('CONFIG_RNG_NO= NE')} summary_info +=3D {'Linux keyring': config_host.has_key('CONFIG_SECRET= _KEYRING')} summary_info +=3D {'FUSE exports': fuse.found()} --=20 2.26.2