summaryrefslogtreecommitdiffstats
path: root/tools/clang/plugins
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 22:09:25 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 22:09:25 +0000
commitd500b9bd646486cf07677717e00e957304f07818 (patch)
treef19725f54ca110b7794d357dca8496015427d07c /tools/clang/plugins
parent5feeca861633c6c39cb481fa2b5c8487bb12bdfd (diff)
downloadchromium_src-d500b9bd646486cf07677717e00e957304f07818.zip
chromium_src-d500b9bd646486cf07677717e00e957304f07818.tar.gz
chromium_src-d500b9bd646486cf07677717e00e957304f07818.tar.bz2
Roll clang 143497:144547
Linux directory detection is now done in the driver instead of in the frontend, so let the plugin test script invoke the driver instead of clang -cc1 (else it won't find <string> etc on linux). Previous attempt at http://codereview.chromium.org/8538027/ BUG=104323 TEST=none TBR=hans Review URL: http://codereview.chromium.org/8572021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/clang/plugins')
-rwxr-xr-xtools/clang/plugins/tests/test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/clang/plugins/tests/test.sh b/tools/clang/plugins/tests/test.sh
index c74cd3a..fcfd213 100755
--- a/tools/clang/plugins/tests/test.sh
+++ b/tools/clang/plugins/tests/test.sh
@@ -23,9 +23,9 @@ usage() {
# Runs a single test case.
do_testcase() {
- local output="$("${CLANG_DIR}"/bin/clang -cc1 \
- -load "${CLANG_DIR}"/lib/libFindBadConstructs.${LIB} \
- -plugin find-bad-constructs ${1} 2>&1)"
+ local output="$("${CLANG_DIR}"/bin/clang -c \
+ -Xclang -load -Xclang "${CLANG_DIR}"/lib/libFindBadConstructs.${LIB} \
+ -Xclang -plugin -Xclang find-bad-constructs ${1} 2>&1)"
local diffout="$(echo "${output}" | diff - "${2}")"
if [ "${diffout}" = "" ]; then
echo "PASS: ${1}"