Giter Site home page Giter Site logo

Comments (3)

cpsauer avatar cpsauer commented on June 9, 2024

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.

alkis avatar alkis commented on June 9, 2024

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.

cpsauer avatar cpsauer commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.