about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-13 13:15:39 +0000
committerEric Wong <e@80x24.org>2023-11-13 21:54:58 +0000
commit09f486cfa17019ad742853e3158ae4a5f580180c (patch)
tree6059f243825ba16c623ca0216c8786f6e22f7aee /lib/PublicInbox
parentbde6b348110031b6d82aab5641dbdb7f62d5686f (diff)
downloadpublic-inbox-09f486cfa17019ad742853e3158ae4a5f580180c.tar.gz
-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++.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/XapHelperCxx.pm2
1 files changed, 1 insertions, 1 deletions
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;