]> granicus.if.org Git - clang/commitdiff
Use -Xclang to pass -internal-isystem and -internal-externc-isystem to -cc1.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 25 Sep 2013 15:47:05 +0000 (15:47 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 25 Sep 2013 15:47:05 +0000 (15:47 +0000)
They are cc1 options only, so the driver was ignoring them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191379 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/crash-report.c

index 528edfb0d85dd9590b0711efcb3025c99344720d..95c57f238e0acc3e56ab2ec382133a568b7e3dd8 100644 (file)
@@ -3,7 +3,8 @@
 // RUN: not env TMPDIR=%t TEMP=%t TMP=%t RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s \
 // RUN:  -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \
 // RUN:  -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \
-// RUN:  -internal-isystem /tmp/ -internal-externc-isystem /tmp/ \
+// RUN:  -Xclang -internal-isystem -Xclang /tmp/                         \
+// RUN:  -Xclang -internal-externc-isystem -Xclang /tmp/                 \
 // RUN:  -DFOO=BAR 2>&1 | FileCheck %s
 // RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
 // RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s