Index: cfe/trunk/tools/scan-build/scan-build =================================================================== --- cfe/trunk/tools/scan-build/scan-build +++ cfe/trunk/tools/scan-build/scan-build @@ -1478,7 +1478,9 @@ # Construct an absolute path. Uses the current working directory # as a base if the original path was not absolute. - $Options{OutputDir} = abs_path(shift @$Args); + my $OutDir = shift @$Args; + mkpath($OutDir) unless (-e $OutDir); # abs_path wants existing dir + $Options{OutputDir} = abs_path($OutDir); next; }