From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D6CBC433B4 for ; Wed, 28 Apr 2021 20:00:05 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 642506143C for ; Wed, 28 Apr 2021 20:00:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 642506143C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=getutm.app Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:55642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbqLr-0007HM-7Y for qemu-devel@archiver.kernel.org; Wed, 28 Apr 2021 16:00:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbqI0-0003Td-9W for qemu-devel@nongnu.org; Wed, 28 Apr 2021 15:56:04 -0400 Received: from mail-pj1-f48.google.com ([209.85.216.48]:54845) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbqHy-0007nI-QV for qemu-devel@nongnu.org; Wed, 28 Apr 2021 15:56:04 -0400 Received: by mail-pj1-f48.google.com with SMTP id t13so7315994pji.4 for ; Wed, 28 Apr 2021 12:56:01 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=GyYruQ9F1fuzvgK1SvJWGn6hG3fNm1wXXod9Z5WCQAY=; b=gInSiH+snaIAh6i7TVQ5mTC7eRoZwbKQy1wmRhZuxJTwSNbBzp1HCg9bwsfJcH9x8o 47odEDizBP3mmR22zgTSRNMpTtxM0SKzdxpWJndWohTrR4sRyCoO+1HucrmYDVW4/K0X ANobwrrgQ/UbwRw4eG1d08J8wsdsXEoc5JFYdIBH9uF4c+LZeB2ntj1EyU1E3gAIW19R 6s8zYMWvIGKwyaH1Q0yNJqWzCSXsPwxOCJW/XpWrpnqgypKm1dCkZuqPV5cAY95LeWwa 1YPgg8JDkA4sgAirRaDBaVqHKXRaMgs96yOsq2sMdaHPkLhkBUPASnc06/1B2R66U3Y3 kMxA== X-Gm-Message-State: AOAM531yrQogwoW23loXpYfxScFD5ppKfAni7JG3QzQrc6BZXQMiqe7K HrdyvAK9FXhGskJ98LNGk2NXMV+eV0I= X-Google-Smtp-Source: ABdhPJwFgAht3n8VHJPG3HlZv75e0o5DSRMvgSju1mUygfiLwgbviV6VV8x+KM321xzynaJTSamN+w== X-Received: by 2002:a17:90b:3754:: with SMTP id ne20mr17101562pjb.39.1619639760285; Wed, 28 Apr 2021 12:56:00 -0700 (PDT) Received: from localhost.localdomain ([73.93.154.1]) by smtp.gmail.com with ESMTPSA id m206sm447399pfd.87.2021.04.28.12.55.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Apr 2021 12:55:59 -0700 (PDT) From: Joelle van Dyne To: qemu-devel@nongnu.org Subject: [PATCH] meson: change buildtype when debug_info=no Date: Wed, 28 Apr 2021 12:55:58 -0700 Message-Id: <20210428195558.16960-1-j@getutm.app> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=209.85.216.48; envelope-from=osy86dev@gmail.com; helo=mail-pj1-f48.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joelle van Dyne Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Meson defaults builds to 'debugoptimized' which adds '-g -O2' to CFLAGS. If the user specifies '--disable-debug-info' we should instead build with 'release' which does not emit any debug info. Signed-off-by: Joelle van Dyne --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 4f374b4889..5c3568cbc3 100755 --- a/configure +++ b/configure @@ -6398,6 +6398,7 @@ NINJA=$ninja $meson setup \ --sysconfdir "$sysconfdir" \ --localedir "$localedir" \ --localstatedir "$local_statedir" \ + --buildtype $(if test "$debug_info" = yes; then echo "debugoptimized"; else echo "release"; fi) \ -Ddocdir="$docdir" \ -Dqemu_firmwarepath="$firmwarepath" \ -Dqemu_suffix="$qemu_suffix" \ -- 2.28.0