-
Notifications
You must be signed in to change notification settings - Fork 107
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
Pja/fix julia home problems #368
Conversation
This will need a |
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 |
There was a problem hiding this comment.
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")
Thanks for the help @ararslan, sorry it took so long to get back to this. I think I have made the changes you requested. |
No problem. This looks good to me now, thanks! |
What's the status of this pull request? |
closed since this PR is obsoleted. |
JuliaLang/julia#25102 and JuliaLang/julia#24673 changed some things around. This seems to fix the build script.