From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC67C187346 for ; Wed, 8 Jul 2026 04:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783486622; cv=none; b=iN0T/pkH8rAFiGFzq8vfHDGEqwYzjQxZoALcyzFuO9929GBnkF2F7KlYLwErv+utcGkB/N3q//635SpoLzfbxhFcNpBv1M0o/ehOhk7scOXD/8yLfIZ0d2YBh546C1xFinpDqJ/8LId2DrDXUihXkVJPXJHn0MznEIZH/zF5WxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783486622; c=relaxed/simple; bh=1la1gQq3azUS+keiFPeQZNQ5pH5JWzl6wT1L2+r+9Mg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tb1+eBOoE3FEIySCAoJEfTNgYiZ/gwiJwKhhb/XcLiJ0Gf2FeK7392tF/VRF6Onc0gCms7G600GytSjaJZJfxeJWC7jVUV5UGNKM8I68frHvsyCGIWKX1+sAvp4eI46f1wUdsixpeRqJEj3GVpi4iDkTNDATXxYSIbcGxPnWpOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NGhTYwN2; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NGhTYwN2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783486619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QJTmhgVkCyWAv1NwJ+JHa69nEk0s70kKPRoNOeh0izk=; b=NGhTYwN2KvCYxk1g446vG5U/teRfjExOl7XPZsZu9aI4BuAlYFiTgvNVk0P9OSrFh8u8oY gO36PxSXVVa4KhMjO+UieMHlCa1pvh5hs+OdAW/HvRa8Atc9tR249vk5EKBh8uR9DpItc0 6IRlvdnCSIZYVHFWdFUCGAuEyKI+5pQ= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-553-8_bGM3nWMsi6yVqUjJ_RPA-1; Wed, 08 Jul 2026 00:56:55 -0400 X-MC-Unique: 8_bGM3nWMsi6yVqUjJ_RPA-1 X-Mimecast-MFC-AGG-ID: 8_bGM3nWMsi6yVqUjJ_RPA_1783486614 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 123D01955F44; Wed, 8 Jul 2026 04:56:54 +0000 (UTC) Received: from tallison-mac.redhat.com (unknown [10.22.81.130]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3243E1800664; Wed, 8 Jul 2026 04:56:52 +0000 (UTC) From: Trevor Allison To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org Cc: mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, james.clark@linaro.org, tallison@redhat.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] perf build: Apply EXTRA_CXXFLAGS to C++ builds Date: Wed, 8 Jul 2026 00:56:05 -0400 Message-ID: <20260708045606.43649-3-tallison@redhat.com> In-Reply-To: <20260708045606.43649-1-tallison@redhat.com> References: <20260708045606.43649-1-tallison@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 C++ sources did not receive EXTRA_CXXFLAGS or EXTRA_CFLAGS, unlike C sources. Initialize CXXFLAGS from both so C++ objects such as demangle-cxx.o get the same builder flags as the rest of perf. Signed-off-by: Trevor Allison --- tools/perf/Makefile.config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 0ba307e78fe1..052a6cc7942f 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -17,6 +17,7 @@ detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected) detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected) CFLAGS := $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) +CXXFLAGS := $(EXTRA_CXXFLAGS) $(EXTRA_CFLAGS) HOSTCFLAGS := $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) # This is required because the kernel is built with this and some of the code -- 2.50.1 (Apple Git-155)