[llvm-bugs] [Bug 39811] New: Add --sysroot support to clangd

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 27 11:42:48 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39811

            Bug ID: 39811
           Summary: Add --sysroot support to clangd
           Product: clang-tools-extra
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: clangd
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mail at 3v1n0.net
                CC: llvm-bugs at lists.llvm.org

I'm compiling using a schroot, so basically my compile_commands.json refers to
some /usr/ files that are actually in a different chroot than the actual
system.

Since I'm also running clangd inside the chroot, everything is fine, but would
be nice to be able to run clangd from the host, and then being able to pass
(like it appens on compiler) --sysroot so that it could use that as prefix.

Not sure if this is related to clangd either, but in VSCode, in this scenario
when trying to open an included path, it opens things in local root, and not in
the chroot.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181127/55ee46e1/attachment.html>


More information about the llvm-bugs mailing list