* [PATCH 4/6] makefile: add `check-build' target
2023-12-08 3:54 6% [PATCH 0/6] cindex join stuff Eric Wong
@ 2023-12-08 3:54 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-12-08 3:54 UTC (permalink / raw)
To: meta
A quick build check can detect bugs more quickly normal runtime
tests.
---
Makefile.PL | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Makefile.PL b/Makefile.PL
index 28f8263e..2b2e6b18 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -34,6 +34,19 @@ my @syn = (@EXE_FILES, grep(m!^lib/.*\.pm$!, @manifest), @scripts);
@syn = grep(!/SaPlugin/, @syn) if !eval { require Mail::SpamAssasin };
$v->{syn_files} = \@syn;
$v->{my_syntax} = [map { "$_.syntax" } @syn];
+my %native = (
+ XapHelperCxx => [ qw(xh_cidx.h xh_mset.h xap_helper.h) ],
+);
+my @ck_build;
+for my $m (sort keys %native) {
+ my $hdr = $native{$m};
+ my @dep = map { "lib/PublicInbox/$_" } ("$m.pm", @$hdr);
+ $t->{"$m.check_build: @dep"} = [ "\$(PERL) -w -I lib ".
+ "-MPublicInbox::$m -e PublicInbox::${m}::check_build" ];
+ push @ck_build, "$m.check_build";
+}
+$t->{"check-build: @ck_build"} = [];
+
my @no_pod;
$v->{-m1} = [ map {
my $x = (split('/'))[-1];
^ permalink raw reply related [relevance 7%]
* [PATCH 0/6] cindex join stuff
@ 2023-12-08 3:54 6% Eric Wong
2023-12-08 3:54 7% ` [PATCH 4/6] makefile: add `check-build' target Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-12-08 3:54 UTC (permalink / raw)
To: meta
1-2 are small speedups, 3-4 are dev improvements, and 5-6
ought to actually improve and future-proof join accuracy.
Eric Wong (6):
*search: simplify handling of Xapian term iterators
*search: favor wantarray form of xap_terms
xap_helper_cxx: drop chdir usage in build
makefile: add `check-build' target
xap_helper: support term length limit
cindex: switch --join to use dfpost7 by default
Makefile.PL | 13 +++++++
lib/PublicInbox/CodeSearch.pm | 15 ++++----
lib/PublicInbox/CodeSearchIdx.pm | 18 +++++-----
lib/PublicInbox/LeiInspect.pm | 1 -
lib/PublicInbox/LeiSearch.pm | 17 ++++-----
lib/PublicInbox/LeiStore.pm | 13 +++----
lib/PublicInbox/Search.pm | 19 +++++-----
lib/PublicInbox/SearchIdx.pm | 13 ++++---
lib/PublicInbox/XapHelper.pm | 24 ++++++++++---
lib/PublicInbox/XapHelperCxx.pm | 19 ++++------
lib/PublicInbox/xap_helper.h | 11 +++++-
lib/PublicInbox/xh_cidx.h | 61 ++++++++++++++++++++++++--------
lib/PublicInbox/xh_mset.h | 2 +-
t/xap_helper.t | 33 +++++++++++++++++
14 files changed, 177 insertions(+), 82 deletions(-)
^ permalink raw reply [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-12-08 3:54 6% [PATCH 0/6] cindex join stuff Eric Wong
2023-12-08 3:54 7% ` [PATCH 4/6] makefile: add `check-build' target Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).