GithubHelp home page GithubHelp logo

Comments (3)

chetant avatar chetant commented on July 20, 2024

How are these include files used? I see that we export a function that provides the path, do you add that path in withParse?

from libclang.

sethfowler avatar sethfowler commented on July 20, 2024

Nah, I didn't want to force users to always include them. It would be a good idea to provide a higher level function with some nice defaults and some clarification on how to use the path, though. (Essentially you just want to add to the command line arguments a "-I" argument which uses that path.)

from libclang.

sethfowler avatar sethfowler commented on July 20, 2024

So it turns out that in the release version of LLVM 3.4, they've fixed this problem. libclang now automatically looks for its headers in the directory containing the library. Once the next GHC is out and we can use dynamic linking, this will be perfect.

For now, I've patched libclang to add clang_setClangResourcesPath which allows us to specify the location of the headers. The nice thing is that because this is a special call instead of being part of the command line arguments passed to clang_parseTranslationUnit and the like, we can totally hide this from the user. I no longer export libclangIncludePath in the updated version of the code.

from libclang.

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.