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

Pja/fix julia home problems #368

Conversation

willow-ahrens
Copy link

@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
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
@@ -35,7 +35,7 @@ println("Tuning for julia installation at $BASE_JULIA_BIN with sources possibly
llvm_path = (Compat.Sys.isapple() && VersionNumber(Base.libllvm_version) >= v"3.8") ? "libLLVM" : "libLLVM-$(Base.libllvm_version)"

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
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
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
Member

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

@ahumenberger
Copy link

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
Member

Gnimuc commented Dec 29, 2019

closed since this PR is obsoleted.

@Gnimuc Gnimuc closed this Dec 29, 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.

4 participants