http://llvm.org/bugs/show_bug.cgi?id=14422
Bug #: 14422
Summary: -frewrite-includes should rewrite __has_include and
friends
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
__has_include makes the compilation host-specific and often fails in a -cc1
environment. This comes up from time to time in clang crash reports because
limits.h makes use of __has_include_next. The resulting file cannot be compiled
with the generated shell script.
I think it's safe to just replace the directive with a constant during
rewriting.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs