https://llvm.org/bugs/show_bug.cgi?id=30382
Bug ID: 30382
Summary: Multiple -isystem seems to add an include path like -I
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
adding multiple -isystem at command line seems to add the paths like "-I" does.
Reproducer:
mkdir bad && mkdir good && echo "#error this shall NEVER happens" > bad/foo.h
&& echo "//ok" > good/foo.h && echo '#include "foo.h"' > main.c
The bug:
clang -isystem ./bad -isystem ./good -I ./good -c main.c
In file included from main.c:1:
./bad/foo.h:1:2: error: this shall NEVER happens
#error this shall NEVER happens
^
1 error generated.
BUT, this compiles fine:
clang -isystem ./bad -I ./good -c main.c
Eric
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs