bisect-runner.pl should detect ccache with -V, not --version
authorNicholas Clark <nick@ccl4.org>
Mon, 19 Mar 2012 11:48:31 +0000 (12:48 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 19 Mar 2012 20:54:41 +0000 (21:54 +0100)
ccache 2.4 doesn't support the --version parameter, only -V. ccache 3
supports both.

Porting/bisect-runner.pl

index f0cc795..3e49f15 100755 (executable)
@@ -519,11 +519,11 @@ die "$0: Can't build $target" if defined $target && !grep {@targets} $target;
 
 unless (exists $defines{cc}) {
     # If it fails, the heuristic of 63f9ec3008baf7d6 is noisy, and hence
-    # confusing. Additionally, it doesn't correctly cope with ccache 2.4
+    # confusing.
     # FIXME - really it should be replaced with a proper test of
     # "can we build something?" and a helpful diagnostic if we can't.
     # For now, simply move it here.
-    $defines{cc} = (`ccache --version`, $?) ? 'cc' : 'ccache cc';
+    $defines{cc} = (`ccache -V`, $?) ? 'cc' : 'ccache cc';
 }
 
 $j = "-j$j" if $j =~ /\A\d+\z/;