[PATCH] D58592: [clang] [ToolChains/NetBSD] Support relative libc++ header path
    Kamil Rytarowski via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sun Feb 24 03:38:08 PST 2019
    
    
  
krytarowski added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/NetBSD.cpp:430
+    // system install from src
+    getDriver().SysRoot + "/usr/include/c++",
+  };
----------------
mgorny wrote:
> krytarowski wrote:
> > I propose to go for:
> > 
> > `getDriver().SysRoot + "/usr/include/c++/v1",` with a fallback for `getDriver().SysRoot + "/usr/include/c++",`
> > 
> > This innocent customization of paths triggers a lot of headache.
> > 
> > We should switch system location to `/usr/include/c++/v1` for next version of LLVM (9.0 as 8.0 is branched and will be released soon).
> > 
> > This way we will keep compat with legacy paths and new clang.
> This is already handled by the relative path (when `getDriver().Dir` is `/usr/bin`).
We still can build newer Clang in pkgsrc on newer base with headers moved to `/usr/include/v1/c++` and it will break.
Repository:
  rC Clang
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58592/new/
https://reviews.llvm.org/D58592
    
    
More information about the cfe-commits
mailing list