From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8B18B1F51B for ; Mon, 13 Nov 2023 13:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1699881353; bh=wj2sfZcPGJ+y/zQ0MZa2n5xhBoHS+amDeM4aJmFJIeI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=it1B6S69rMhMNRjLfo9vyVPIvfzSMCrpEmMOnCIO9IyA1MDlR4Z+ILFs4V3Bf2z4n 8LALLAqHTvRRvg0cNsObGmN2CZpJS95CAkW6NcflAXj1gMbdNIrPRhN7nPcskvtEcx w/5um0kmcg9k47HBeaHjHvL81AF5lUDlRM3en/5s= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 06/18] xap_helper_cxx: use -pipe by default in CXXFLAGS Date: Mon, 13 Nov 2023 13:15:39 +0000 Message-Id: <20231113131551.843230-7-e@80x24.org> In-Reply-To: <20231113131551.843230-1-e@80x24.org> References: <20231113131551.843230-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: -ggdb3 is already used for g++ and clang, and -pipe is supported by clang even if it's a no-op. So just use it to speed up g++ since it saves me 30-40ms. We'll also get rid of the explicit `-O0' since it's the default for both clang and g++. --- lib/PublicInbox/XapHelperCxx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/XapHelperCxx.pm b/lib/PublicInbox/XapHelperCxx.pm index 7aa52416..3afdd69e 100644 --- a/lib/PublicInbox/XapHelperCxx.pm +++ b/lib/PublicInbox/XapHelperCxx.pm @@ -23,7 +23,7 @@ my @srcs = map { $srcpfx.$_ } qw(xap_helper.h); my @pm_dep = map { $srcpfx.$_ } qw(Search.pm CodeSearch.pm); my $ldflags = '-Wl,-O1'; $ldflags .= ' -Wl,--compress-debug-sections=zlib' if $^O ne 'openbsd'; -my $xflags = ($ENV{CXXFLAGS} // '-Wall -ggdb3 -O0') . ' ' . +my $xflags = ($ENV{CXXFLAGS} // '-Wall -ggdb3 -pipe') . ' ' . ' -DTHREADID=' . PublicInbox::Search::THREADID . ' ' . ($ENV{LDFLAGS} // $ldflags); my $xap_modversion;