[PATCH] D58592: [clang] [ToolChains/NetBSD] Support relative libc++ header path

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 24 04:46:05 PST 2019


mgorny marked an inline comment as done.
mgorny added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/NetBSD.cpp:430
+    // system install from src
+    getDriver().SysRoot + "/usr/include/c++",
+  };
----------------
krytarowski wrote:
> 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.
I don't understand. Why would it break? (besides the typo in the path)


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