]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
xap_helper_cxx: use -pipe by default in CXXFLAGS
authorEric Wong <e@80x24.org>
Mon, 13 Nov 2023 13:15:39 +0000 (13:15 +0000)
committerEric Wong <e@80x24.org>
Mon, 13 Nov 2023 21:54:58 +0000 (21:54 +0000)
-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

index 7aa5241685957daae22c8596f77a30d5a79b453e..3afdd69ee7414684439e63997effc553d975cad8 100644 (file)
@@ -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;