Comments (3)
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 -isysroot<dir>
form is that that's the only one documented by clang.
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?
from bazel-compile-commands-extractor.
The tool is working great at Databricks. Thank you Chris!
We are using clang. Regarding sysroot
support in clang, I am not an expert but --sysroot
seems to be the right way to do it according to https://clang.llvm.org/docs/CrossCompilation.html. Also --sysroot
is documented in the documentation linked above https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-sysroot, so perhaps we are fighting an old bug here? Maybe we should remove the code?
In any case the current code generates -isysrootXXXX
. That is no space or =
between flag and value. That seems wrong, no?
from bazel-compile-commands-extractor.
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. -isysrootXXXX
was indeed the documented form, as above. sysroot and isysroot are quite similar.]
from bazel-compile-commands-extractor.
Related Issues (20)
- nvcc fatal : Cannot find compiler 'cl.exe' in PATH HOT 4
- Relevant arguments are lost by the `bazel aquery ...` portion of compile command generation HOT 6
- protobufs not working in clangd HOT 1
- Suggested integration with VSCode HOT 1
- refreshAll failed to find C++ standard library if I specify '--sysroot' HOT 5
- clangd failed to find compilation database for dependency code HOT 6
- name 'module_extension' is not defined when used in Tensorflow-1.15.5 version HOT 4
- Linker error - collect2: fatal error: cannot find 'ld' HOT 1
- YCM reporting errors not present when code is actually built HOT 9
- Error when use with bazel --output_base flag HOT 5
- cuda_rules triggers assert "Something went wrong in makefile parsing to get headers. The target should be an object file."
- Third party library library from Bazel (sub)repository is not recognized HOT 3
- 'PurePosixPath' object has no attribute 'is_relative_to'
- When a giant project already has a folder called external in the root folder HOT 1
- Select usage example for refresh_compile_commands
- .o files appear in the current directory HOT 1
- When using the bazel module, how to define the refresh_command in BUILD HOT 12
- Suggestion: Custom Bazel binary path/name HOT 1
- Help us help this project by adopting a standard license 😁 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel-compile-commands-extractor.