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

Make globals external again #407

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

jonathanvdc
Copy link
Contributor

Hello! Persuant to @vchuravy's suggestion in Julia PR #31272, I'd like to restore some commented-out code that makes all globals external. My proposed changes in the Julia PR tweak llvmcall to no longer silently discard non-external linkage for globals. However, as it turns out, Cxx.jl seems to implicitly rely on llvmcall discarding non-external linkage. Hence this PR.

I used Pkg.test() to run Cxx.jl's tests. With my proposed changes, Cxx.jl's tests all pass when run on my machine using the modified version of Julia from my aforementioned PR. Cxx.jl's tests also pass when run using Julia compiled from the master branch (hopefully the CI builds will confirm that). Is there anything else I should do to test if Cxx.jl still works?

@jonathanvdc
Copy link
Contributor Author

Hmmm. The CI builds are failing but I'm not sure if that has anything to do with the changes in this PR. The root causes of the failing CI builds seem to be that

  1. on Linux, wget https://s3.amazonaws.com/julia-cxx/llvm-linux-6.0.1.tgz fails; and
  2. on MacOS, mkdir -p $TRAVIS_BUILD_DIR/../Cxx-cache && cp -R $TRAVIS_BUILD_DIR $TRAVIS_BUILD_DIR/../Cxx-cache fails.

@oschulz
Copy link
Contributor

oschulz commented Aug 8, 2019

Are the still CI problems with this? Would be so great to get this merged so we can play with Cxx on Julia v1.3. :-)

@Gnimuc
Copy link
Member

Gnimuc commented Aug 8, 2019

That CI failure doesn't matter. We need to patch this on the CxxBuilder side because it's not feasible to do a source build on Travis.

@oschulz
Copy link
Contributor

oschulz commented Aug 8, 2019

Ah, thanks!

@Gnimuc Gnimuc merged commit d488dba into JuliaInterop:master Dec 6, 2019
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.

3 participants