mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-07 05:59:42 +00:00
fa9df7af07
This adds -nostdsysteminc to the %clang_cc1 expansion, which should make it harder to accidentally write tests that depend on headers in /usr/include. It also updates a few tests that use -isysroot <x> and a darwin triple to omit the triple and use -isystem <x>/usr/include instead, making them a little bit more general. Incidentally, this fixes a test failure I'm seeing on darwin in Modules/stddef.c, that happens because my system finds a stddef.h in /usr/include. llvm-svn: 219030
15 lines
693 B
C
15 lines
693 B
C
// This uses a headermap with this entry:
|
|
// someheader.h -> Product/someheader.h
|
|
|
|
// RUN: %clang_cc1 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isystem %S/Inputs/headermap-rel2/system/usr/include -I %S/Inputs/headermap-rel2 -H
|
|
// RUN: %clang_cc1 -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isystem %S/Inputs/headermap-rel2/system/usr/include -I %S/Inputs/headermap-rel2 -H 2> %t.out
|
|
// RUN: FileCheck %s -input-file %t.out
|
|
|
|
// CHECK: Product/someheader.h
|
|
// CHECK: system/usr/include{{[/\\]+}}someheader.h
|
|
// CHECK: system/usr/include{{[/\\]+}}someheader.h
|
|
|
|
#include "someheader.h"
|
|
#include <someheader.h>
|
|
#include <someheader.h>
|