summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2014-05-12 17:04:44 +0000
committerJordan Rose <jordan_rose@apple.com>2014-05-12 17:04:44 +0000
commit2b84dd3d77a6f9ac9cc06bf9685ac8ebcf4ecfe6 (patch)
tree6c623fd4b1408d05010c60c8f473bc5c0f0df12a /tools
parent86396e9b53c3aff75b2d53f92b0368c858f4189e (diff)
downloadclang-2b84dd3d77a6f9ac9cc06bf9685ac8ebcf4ecfe6.tar.gz
[scan-build] Pass --sysroot through for both compilation and linking.
PR19704 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scan-build/ccc-analyzer1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer
index b5445e69ed..2fdf79b477 100755
--- a/tools/scan-build/ccc-analyzer
+++ b/tools/scan-build/ccc-analyzer
@@ -353,6 +353,7 @@ my %CompilerLinkerOptionMap = (
'-m32' => 0,
'-m64' => 0,
'-stdlib' => 0, # This is really a 1 argument, but always has '='
+ '--sysroot' => 1,
'-target' => 1,
'-v' => 0,
'-mmacosx-version-min' => 0, # This is really a 1 argument, but always has '='