Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared_init option to export jl_runtime initialization into shared lib #122

Merged
merged 2 commits into from
Sep 20, 2018

Conversation

Petr-Hlavenka
Copy link
Contributor

A shared lib (DLL) produced by static compilation still requires some non-trivial housekeeping in order to safely use the base.@ccallable exported functions. Not that terrible when dealing with C++, but a very unsatisfying experience when dealing with C# (as in my case).
Therefore I've integrated into the shared library build a minimal C program that implements init_jl_runtime and exit_jl_runtime functions, so in order to use the shared library one doesn't need anything else but these two functions and his own exported functions.

@codecov-io
Copy link

codecov-io commented Sep 20, 2018

Codecov Report

Merging #122 into master will decrease coverage by 1.44%.
The diff coverage is 38.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
- Coverage   72.59%   71.15%   -1.45%     
==========================================
  Files           6        6              
  Lines         354      364      +10     
==========================================
+ Hits          257      259       +2     
- Misses         97      105       +8
Impacted Files Coverage Δ
src/api.jl 50% <ø> (ø) ⬆️
src/system_image.jl 82.35% <ø> (ø) ⬆️
src/static_julia.jl 72.78% <38.46%> (-3.32%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdea4e8...98c4ade. Read the comment docs.

@lucatrv lucatrv merged commit 98c4ade into JuliaLang:master Sep 20, 2018
@lucatrv
Copy link
Collaborator

lucatrv commented Sep 20, 2018

Merged with PR #123, thanks!

@lucatrv
Copy link
Collaborator

lucatrv commented Sep 25, 2018

@vtjnash I saw you have already fixed all this in PR #116, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants