Detect whether ccache is available to bisect.
authorPaul Johnson <paul@pjcj.net>
Thu, 17 Nov 2011 20:20:15 +0000 (21:20 +0100)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 17 Nov 2011 21:16:56 +0000 (13:16 -0800)
ccache will save time during a bisect but it may not always be availble.
Teach bisect-runner.pl to only use it if it is available.

Porting/bisect-runner.pl

index 5896d3a..fea722b 100755 (executable)
@@ -53,7 +53,7 @@ my %defines =
     (
      usedevel => '',
      optimize => '-g',
-     cc => 'ccache cc',
+     cc => (`ccache --version`, $?) ? 'cc' : 'ccache cc',
      ld => 'cc',
      ($linux64 ? (libpth => \@paths) : ()),
     );