}
}
+# The flag corresponding to the --override-compiler command line option.
+my $OverrideCompiler = 0;
+
sub RunXcodebuild {
my $Args = shift;
my $IgnoreErrors = shift;
}
close(DETECT_XCODE);
+ # If --override-compiler is explicitely requested, resort to the old
+ # behavior regardless of Xcode version.
+ if ($OverrideCompiler) {
+ $oldBehavior = 1;
+ }
+
if ($oldBehavior == 0) {
my $OutputDir = $Options->{"OUTPUT_DIR"};
my $CLANG = $Options->{"CLANG"};
Don't remove the build results directory even if no issues were reported.
+ --override-compiler
+ Always resort to the ccc-analyzer even when better interposition methods
+ are available.
+
CONTROLLING CHECKERS:
A default group of checkers are always run unless explicitly disabled.
$KeepEmpty = 1;
next;
}
+
+ if ($arg eq "--override-compiler") {
+ shift @ARGV;
+ $OverrideCompiler = 1;
+ next;
+ }
DieDiag("unrecognized option '$arg'\n") if ($arg =~ /^-/);