summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-09-15 05:51:10 +0000
committerTed Kremenek <kremenek@apple.com>2012-09-15 05:51:10 +0000
commitb184a36aade7d299fd9ddbe305fd472788270fc3 (patch)
tree5a016f679fb66858ffa78f9942bd256d79fe66c6
parentfa9e4badce2199071bd8a742a6e2f8a42533bf7c (diff)
downloadbcm5719-llvm-b184a36aade7d299fd9ddbe305fd472788270fc3.tar.gz
bcm5719-llvm-b184a36aade7d299fd9ddbe305fd472788270fc3.zip
Revert "Utilize new build system support in Xcode 4.5 for easier interposition"
It's not clear if this is working yet on the buildbot. Reverting until we have time to investigate. llvm-svn: 163963
-rwxr-xr-xclang/tools/scan-build/scan-build30
1 files changed, 0 insertions, 30 deletions
diff --git a/clang/tools/scan-build/scan-build b/clang/tools/scan-build/scan-build
index d27a07396d7..a13b235aa93 100755
--- a/clang/tools/scan-build/scan-build
+++ b/clang/tools/scan-build/scan-build
@@ -884,36 +884,6 @@ sub RunXcodebuild {
if ($IgnoreErrors) {
AddIfNotPresent($Args,"-PBXBuildsContinueAfterErrors=YES");
}
-
- # Detect the version of Xcode. If Xcode 4.5 or higher, use new
- # in situ support for analyzer interposition without needed to override
- # the compiler.
- open(DETECT_XCODE, "xcodebuild -version |") or
- die "error: cannot detect version of xcodebuild\n";
-
- my $oldBehavior = 1;
-
- while(<DETECT_XCODE>) {
- if (/^Xcode (.+)$/) {
- if ($1 >= 4.5) {
- $oldBehavior = 0;
- last;
- }
- }
- }
- close(DETECT_XCODE);
-
- if ($oldBehavior == 0) {
- my $OutputDir = $Options->{"OUTPUT_DIR"};
- my $CLANG = $Options->{"CLANG"};
- push @$Args,
- "RUN_CLANG_STATIC_ANALYZER=YES",
- "CLANG_ANALYZER_OUTPUT=plist-html",
- "CLANG_ANALYZER_EXEC=$CLANG",
- "CLANG_ANALYZER_OUTPUT_DIR=$OutputDir";
-
- return (system(@$Args) >> 8);
- }
# Default to old behavior where we insert a bogus compiler.
SetEnv($Options);
OpenPOWER on IntegriCloud