ccc-analyzer: pass -stdlib=libc++ through to the analyzer.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2012 22:56:24 +0000 (22:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2012 22:56:24 +0000 (22:56 +0000)
Otherwise clang can't analyze code that relies on features provided by libc++.

llvm-svn: 164262

clang/tools/scan-build/ccc-analyzer

index 216dc9d6e1e853bd45cb6fb31ef4303c0a816d71..8717225c18db3ca4fae214925e09a8b2c117732e 100755 (executable)
@@ -354,6 +354,7 @@ my %CompilerLinkerOptionMap = (
   '-arch' => 1,
   '-m32' => 0,
   '-m64' => 0,
+  '-stdlib' => 0, # This is really a 1 argument, but always has '='
   '-v' => 0,
   '-fpascal-strings' => 0,
   '-mmacosx-version-min' => 0, # This is really a 1 argument, but always has '='