Giter Club home page Giter Club logo

Comments (5)

sloede avatar sloede commented on June 11, 2024

You can, by populating the julia_init_h_file option,

- `julia_init_h_file::::Union{String, Vector{String}}`: A file or list of files to include
in the library bundle, with declarations for the functions defined in the file(s) provided
via `julia_init_c_file` (default: `PackageCompiler.default_julia_init_header()`).

with appropriate values. For example, to include the default init file header plus the Julia header file, you could try something like

julia_init_h_file = [PackageCompiler.default_julia_init_header(),
                     joinpath(Sys.BINDIR, Base.INCLUDEDIR, "julia", "julia.h")]

from packagecompiler.jl.

rekabrnalla avatar rekabrnalla commented on June 11, 2024

Thanks. I will try that. I couldn't find it in the documentation anywhere.
Will it automatically pull in all of the julia.h include dependencies?

from packagecompiler.jl.

sloede avatar sloede commented on June 11, 2024

I couldn't find it in the documentation anywhere.

It is considered an "advanced" option and thus only documented in the References section. I'd be open to adding a section on custom header/init files in the main docs though.

Will it automatically pull in all of the julia.h include dependencies?

No, you're right. You'd have to do this manually. I also see currently no sane way to automate this, since you'd have to transitively also include those headers. Except maybe to include the entire joinpath(Sys.BINDIR, Base.INCLUDEDIR, "julia") folder in the library bundle.

from packagecompiler.jl.

rekabrnalla avatar rekabrnalla commented on June 11, 2024

So it seems like this is still a valid issue? To somehow make this more manageable, or specify which functions to rehost in the shared library somehow.

from packagecompiler.jl.

sloede avatar sloede commented on June 11, 2024

Yes, I still consider this to be a valid issue. However, it is unclear to me if such a functionality should be included in PackageCompiler.jl to be automated, or whether it is something that could be documented but would be left up to the user to do manually.

Maybe @KristofferC has on opinion here?

from packagecompiler.jl.

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.