Giter Club home page Giter Club logo

Comments (7)

trfiala avatar trfiala commented on July 21, 2024

I have temporarily made a manual edit to the static swig bindings until I can adjust the swig step to make sure the #ifdef in the typemap passes through to the generated file.

That temporary change is here:
apple/swift-lldb@fbbacbd

from llvm-project.

trfiala avatar trfiala commented on July 21, 2024

It looks like I can use the following swig syntax to support ensuring the #ifdef carries through to the baked file:

From the Swig manual:
```
%{
#ifdef NEED_BLAH
int blah() {
...
}
#endif
%}
```

from llvm-project.

trfiala avatar trfiala commented on July 21, 2024

Testing a change for this locally. I'll send up in a PR if this generates the code I expect.

from llvm-project.

trfiala avatar trfiala commented on July 21, 2024

Oops no that's not the right syntax.

It looks like I really want:
%#ifdef ...

from llvm-project.

trfiala avatar trfiala commented on July 21, 2024

I've got the fix in upstream llvm.org svn trunk. I'm waiting on testing of SR-1193 to complete before I submit a PR for this in GitHub.

from llvm-project.

trfiala avatar trfiala commented on July 21, 2024

Testing the PR for this now:
apple/swift-lldb#13

from llvm-project.

trfiala avatar trfiala commented on July 21, 2024

Merged in here:
apple/swift-lldb@70cbf39

from llvm-project.

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.