[analyzer] Fix the 'analyzer-enabled-checkers.c' test on non-linux machines.

'-Xclang -triple' doesn't seem to override the default target triple
as reliably as '--target'. This leads to test failing due to
platform-specific checks getting unexpectedly enabled.

llvm-svn: 371781
This commit is contained in:
Artem Dergachev 2019-09-12 22:11:15 +00:00
parent a42070a6aa
commit 851e95c1c1
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
// RUN: %clang --analyze %s \ // RUN: %clang --analyze %s --target=x86_64-pc-linux-gnu \
// RUN: -Xclang -triple -Xclang x86_64-pc-linux-gnu \
// RUN: -Xclang -analyzer-list-enabled-checkers \ // RUN: -Xclang -analyzer-list-enabled-checkers \
// RUN: -Xclang -analyzer-display-progress \ // RUN: -Xclang -analyzer-display-progress \
// RUN: 2>&1 | FileCheck %s --implicit-check-not=ANALYZE \ // RUN: 2>&1 | FileCheck %s --implicit-check-not=ANALYZE \