-
Notifications
You must be signed in to change notification settings - Fork 141
sysroot handling is wrong in certain cases #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi again, Alkis! It's great to hear from you. Tool otherwise working okay for you guys at Databricks? Definitely want to check with you, but I think that's working as originally intended (though my comment is at best ambiguous....)--though it's well possible that my original intent was wrong. Is it causing downstream errors? The reason it's using the I'll go ahead and disambiguate the comment at the very least. It's possible clangd has fixed the underlying bug there... I'll check in on #84, but if you're using GCC, could I ask you to try removing that patch line and see if all still works successfully? |
The tool is working great at Databricks. Thank you Chris! We are using clang. Regarding In any case the current code generates |
Yay! Delighted to hear it :) @eschumacher-s confirmed over in #82 (comment) that the underlying clangd bug seems to be resolved, so I'll go ahead and remove the workaround. [That said, I still think this was working right? Bug was in clangd, not clang. |
Thanks for the great tool!
I have an issue where in my
compile_commands.json
the sysroot argument comes out garbled, like this:"-isysrootexternal/sysroot-linux-x86_64-gnu7-llvm-16",
This snippet here seems a bit weird:
bazel-compile-commands-extractor/refresh.template.py
Lines 873 to 876 in 5bcb0bd
I think the comment is saying that we are rewriting
-isysroot
to--sysroot
but the code does the reverse. Plus this:will rewrite
--sysroot=XXX
to-isysrootXXX
which is likely what's happening in my case. If we want to generate-isysroot XXX
here we would need to generate twice as many input args start with--sysroot
, right?The text was updated successfully, but these errors were encountered: