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: unassignedclangb...@nondot.org
          Reporter: m...@3v1n0.net
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to