From nobody Sat May 4 14:17:55 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1670112292; cv=none; d=zohomail.com; s=zohoarc; b=PjrkoXKZtY2At6UE1XOeUXG4scXcJNoIxN3HNrFPXmEja25xYKRDWAtiFc03CE+RSPmQNXzg3NsBew38RMxBZm8lidb8GXFuOv2r+Q01wL3HpWn2KZGnAtxk0fQ+oxjijohhuQkX62inrgmQSxuqVdA7CVB1buNsjMzSonybbgo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670112292; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=vNjsgcAi1s+qqB/0T1CtW2U318zYlBY2r650cvBjAws=; b=lsXD1ExnsyFTenGyR+rpsZvNI+RTlWSNOXh3gVoNVzpdfGe9rQR3xXwh7YCjbb5h7SWys8rMz1BF0YIjnlUic/6Yy31nE4RpL7voTiGKwM+PJsCQjoCWTGAqEFAobgQKdXvPVNXdmyusG937H+upHlaq0F+7YV/2Jhz5YicUP/g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1670112292020865.9057953678442; Sat, 3 Dec 2022 16:04:52 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1cTz-00043V-98; Sat, 03 Dec 2022 19:03:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1cTy-00043G-5Q for qemu-devel@nongnu.org; Sat, 03 Dec 2022 19:03:46 -0500 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1cTw-0008R1-Iq for qemu-devel@nongnu.org; Sat, 03 Dec 2022 19:03:45 -0500 Received: by mail-oi1-x230.google.com with SMTP id n186so9119211oih.7 for ; Sat, 03 Dec 2022 16:03:43 -0800 (PST) Received: from stoup.. ([2806:102e:18:70b5:750e:f543:b9a7:14ad]) by smtp.gmail.com with ESMTPSA id bh8-20020a056830380800b006621427ecc7sm5277401otb.60.2022.12.03.16.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Dec 2022 16:03:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vNjsgcAi1s+qqB/0T1CtW2U318zYlBY2r650cvBjAws=; b=YJyBY4hhthneoUA/sEbvqMBiPNbszGCYnqohPVR3+JHF4gDkm+4+OipAKqCQKTkHp2 jc8ZOEKpPhCzoesO2xHCxhNtH8StfWWc2gnQljwRb213wA7Iu5A0iNsYef8WOtQ4Yu8l O7vcY2tY8uaKFwcQ4y1Jfs3PvJTkFfIWKKBtmHMytVZstLzMGuVbLZz5GIW78RnltG+b wZjkgLhjzSce4DlyCE0TOszhbbt/GxaxcMvZp6tqLG2vZrUDn0/NjuPH0eUFtgaM0kMR dA8vqoKECGBzN0t+enu8GMt8px/70xt2l3sud7Nvr+rhfQ2jmw1C3X32vmBR6hcEUY3A a+XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vNjsgcAi1s+qqB/0T1CtW2U318zYlBY2r650cvBjAws=; b=quD1iTNaAPfqxSBU1DNJuRvY8G2V/N4U+K/AvEa22Vn+9xXkNRmXXds1RdbBe6DbGV IiRcHVYwMsjGLo7WJl+0Lom3KcbT+btcL12jXhZztdW8ttFzDFfXBjN5zap7SZFPP1l1 MJUxSe/ISPOT4ighANQls/SiQNeh74mq+VgzoDSan6bmB3JVGRHmaKEbnc2ID5exFIDt o9unf0o9/htcXTdxuJ2GDQbKipyeaPyIiXzp46aRT253pmE1BUeN0KpkWWt3m8jkLE7V ITHxyhSyvyr/Aegmh6gXgQfDRG7CQI4H3Jvgq0mmRJiXNUJ5xt55alPfknf58V0kz96N 5XRQ== X-Gm-Message-State: ANoB5pnD3JLkgTXLqFuyHF8YZEjc3uYAasRCbTahVvMy+sKplzvulD7i EaoLF4xNgCQHuFsPRBTF76dFnHz+4RoLarxy8cY= X-Google-Smtp-Source: AA0mqf6Z6+ajCYHCiHOZYuxtKgnoXkdd7Vu6dGcysTC0pZJIXGqCMaMMcKS1M+ZM7/rBSIL/O5f3Lg== X-Received: by 2002:a05:6808:193:b0:35b:c0ea:b59b with SMTP id w19-20020a056808019300b0035bc0eab59bmr11984545oic.32.1670112222713; Sat, 03 Dec 2022 16:03:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Subject: [PATCH] configure: Add --enable-lto Date: Sat, 3 Dec 2022 18:03:40 -0600 Message-Id: <20221204000340.282718-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 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=2607:f8b0:4864:20::230; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x230.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1670112294226100003 Content-Type: text/plain; charset="utf-8" Separately control b_lto without --enable-cfi. Also add --disable-lto for completeness. Signed-off-by: Richard Henderson --- configure | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 26c7bc5154..d9c9babfc3 100755 --- a/configure +++ b/configure @@ -301,6 +301,7 @@ fdt=3D"auto" # 2. Automatically enable/disable other options tcg=3D"auto" cfi=3D"false" +lto=3D"true" =20 # parse CC options second for opt do @@ -837,12 +838,14 @@ for opt do ;; --disable-safe-stack) safe_stack=3D"no" ;; - --enable-cfi) - cfi=3D"true"; - meson_option_add -Db_lto=3Dtrue + --enable-cfi) cfi=3D"true" lto=3D"true" ;; --disable-cfi) cfi=3D"false" ;; + --enable-lto) lto=3D"true" + ;; + --disable-lto) lto=3D"false" + ;; --disable-fdt) fdt=3D"disabled" ;; --enable-fdt) fdt=3D"enabled" @@ -2591,6 +2594,7 @@ if test "$skip_meson" =3D no; then 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 + test "$lto" =3D true && meson_option_add "-Db_lto=3Dtrue" =20 # QEMU options test "$cfi" !=3D false && meson_option_add "-Dcfi=3D$cfi" --=20 2.34.1