Skip to content
This repository was archived by the owner on Oct 4, 2025. It is now read-only.

Pja/fix julia home problems#368

Closed
willow-ahrens wants to merge 3 commits intoJuliaInterop:masterfrom
willow-ahrens:pja/fix_JULIA_HOME_problems
Closed

Pja/fix julia home problems#368
willow-ahrens wants to merge 3 commits intoJuliaInterop:masterfrom
willow-ahrens:pja/fix_JULIA_HOME_problems

Conversation

@willow-ahrens
Copy link
Copy Markdown

@willow-ahrens willow-ahrens commented Jan 8, 2018

JuliaLang/julia#25102 and JuliaLang/julia#24673 changed some things around. This seems to fix the build script.

@ararslan
Copy link
Copy Markdown
Member

ararslan commented Jan 8, 2018

This will need a using Compat at the top, and Sys.BINDIR will need to be Compat.Sys.BINDIR.

deps/build.jl Outdated

llvm_lib_path = Libdl.dlpath(llvm_path)
old_cxx_abi = searchindex(open(read, llvm_lib_path),Vector{UInt8}("_ZN4llvm3sys16getProcessTripleEv"),0) != 0
old_cxx_abi = findnext("_ZN4llvm3sys16getProcessTripleEv", String(open(read, llvm_lib_path)),0) != 0:-1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String(open(read, llvm_lib_path)) could be written more clearly as read(llvm_lib_path, String), and the whole of it could be written more simply with contains:

old_cxx_abi = contains(read(llvm_lib_path, String), "_ZN4llvm3sys16getProcessTripleEv")

@willow-ahrens
Copy link
Copy Markdown
Author

Thanks for the help @ararslan, sorry it took so long to get back to this. I think I have made the changes you requested.

@ararslan
Copy link
Copy Markdown
Member

No problem. This looks good to me now, thanks!

@ahumenberger
Copy link
Copy Markdown

What's the status of this pull request?
With Julia v0.7-beta out it would be nice to have a working Cxx.jl.

@Gnimuc
Copy link
Copy Markdown
Member

Gnimuc commented Dec 29, 2019

closed since this PR is obsoleted.

@Gnimuc Gnimuc closed this Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants