Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/install.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ function lineedit(editor::Function, filename::String)
lines = open(filename) do io
readlines(io, keep=true)
end

# Run user editor; if something goes wrong, just quit out
try
lines = editor(lines)
catch e
@error("Error occured while running user line editor:", e)
return nothing
end

# Write it out, if the editor decides something needs to change
if lines != nothing
open(filename, "w") do io
Expand All @@ -56,6 +56,8 @@ function replace_libblas(base_dir, name)
return "const libblas_name = $(repr(name))\n"
elseif occursin(r"liblapack_name", l)
return "const liblapack_name = $(repr(name))\n"
elseif occursin(r"USE_BLAS64", l)
return "const USE_BLAS64 = false"
else
return l
end
Expand Down