http://llvm.org/bugs/show_bug.cgi?id=19577
Bug ID: 19577
Summary: Driver does not detect C++ headers if GCC configured
with --with-gxx-include-dir
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
GCC has a configuration option (--with-gxx-include-dir) that can be used to set
where the C++ headers get installed. If this is set to anything other than
$PREFIX/include/c++, the clang driver does not correctly find these headers
even if it finds the GCC toolchain. For example, Cray's GCC packages are
configured with --with-gxx-incude-dir=$PREFIX/include/g++ causing clang's
driver to be incompatible with them.
There are a bunch of existing special cases in
Linux::AddClangCXXStdlibIncludeArgs(), but it'd be nice if instead there were a
build option (other than patching the source by hand...) that could be used to
tell the clang driver where to search for headers so distributions/users could
tell the driver exactly where to look if necessary. I unfortunately am
prohibited by my employer from contributing to clang/llvm, so I can't provide
the local changes I made to do this, but the changes are minimal.
--
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