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,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF 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 6FD9A1F461 for ; Fri, 26 Apr 2024 11:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1714130984; bh=BqVke8JjKwqauKh/o5uzcXPfTj9K7D6lidZ9Y7HSRPg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y1Dk9sbn3BdBCd8GltmLjPHQNgWMNcL08chm8JFg29jgfT1+ro3Rja1UDIZ1vF+m5 LpceDTUPeBDFhhIlE1y2KRzWha714UXoxRgBDDJr6NbuT2XQAsvmmorYR5vQX3eutS lpU/gmLCPOxnQmj0PeTrE+vmlT+LBHOhrB98IdHI= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] test_common: don't needlessly rebuild C++ Xapian helper Date: Fri, 26 Apr 2024 11:29:41 +0000 Message-ID: <20240426112944.1528532-2-e@80x24.org> In-Reply-To: <20240426112944.1528532-1-e@80x24.org> References: <20240426112944.1528532-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We should almost always be calling `check_build' instead of `build'. Using ccache masked some of the overhead from this, but various linker implementations are still slow. --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index b8b7b827..708fa698 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -726,7 +726,7 @@ SKIP: { require File::Path; eval { # use XDG_CACHE_HOME, first: require PublicInbox::XapHelperCxx; - PublicInbox::XapHelperCxx::build(); + PublicInbox::XapHelperCxx::check_build(); }; local %ENV = %ENV; delete $ENV{XDG_DATA_HOME};