Skip to content

Instantly share code, notes, and snippets.

@d0k
Created September 19, 2012 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d0k/3751090 to your computer and use it in GitHub Desktop.
Save d0k/3751090 to your computer and use it in GitHub Desktop.
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer
index 216dc9d..51f5097 100755
--- a/tools/scan-build/ccc-analyzer
+++ b/tools/scan-build/ccc-analyzer
@@ -569,6 +569,12 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) {
push @CompileOpts,$Arg;
next;
}
+
+ if ($Arg =~ /^-stdlib=/) {
+ push @CompileOpts,$Arg;
+ push @LinkOpts,$Arg;
+ next;
+ }
# if ($Arg =~ /^-f/) {
# # FIXME: Not sure if the remaining -fxxxx options have no arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment