http://llvm.org/bugs/show_bug.cgi?id=15885

            Bug ID: 15885
           Summary: Driver assumes libc++ headers in /usr/include, libc++
                    installs them into current install location
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 10449
  --> http://llvm.org/bugs/attachment.cgi?id=10449&action=edit
possible patch for ToolChains.cpp

There is currently a mismatch between where the driver expects to find the C++
headers if  the -stdlib=libc++ flag is used( /usr/include/c++/v1) and where a
libc++ 'install' actually installs them (
${CMAKE_INSTALL_PREFIX}/include/c++/v1 ).

 If the driver and the libraries are explicitly installed into different places
then the user can be expected to have to supply correct -I and -L flags (or
there should be a option to point to a common install area).

 For a simple install to a single area though, Things Should Just Work.

I have attached a patch for ToolChains.cpp that looks in the installation
directory, rather than the fixed location, though a more sophisticated system
could no doubt be devised.

-- 
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

Reply via email to