]> granicus.if.org Git - clang/commitdiff
[scan-build] Accept -fno-objc-arc as well as -fobjc-arc.
authorJordan Rose <jordan_rose@apple.com>
Thu, 23 Aug 2012 23:16:34 +0000 (23:16 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 23 Aug 2012 23:16:34 +0000 (23:16 +0000)
This is how Xcode lets individual files be marked as non-ARC when the rest
of the project is ARC-enabled, so this is necessary for scan-build xcodebuild.

Patch by Paul Eipper!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162497 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index c7636f9e8e8ff7c81323a4a99e7812b57abd7a76..216dc9d6e1e853bd45cb6fb31ef4303c0a816d71 100755 (executable)
@@ -346,6 +346,7 @@ my %LinkerOptionMap = (
 
 my %CompilerLinkerOptionMap = (
   '-fobjc-arc' => 0,
+  '-fno-objc-arc' => 0,
   '-fobjc-abi-version' => 0, # This is really a 1 argument, but always has '='
   '-fobjc-legacy-dispatch' => 0,
   '-mios-simulator-version-min' => 0, # This really has 1 argument, but always has '='