Skip to content

Commit

Permalink
store prefs in depot_path/prefs (#81)
Browse files Browse the repository at this point in the history
* store prefs in depot_path/prefs

As a stopgap until we get proper package options (JuliaLang/Juleps#38), store JULIA_FFTW_PROVIDER preference in depot_path/prefs/FFTW so that it isn't forgotten when FFTW.jl is updated. See also JuliaPy/PyCall.jl#589

* whoops, forgot mkpath
  • Loading branch information
stevengj authored Oct 12, 2018
1 parent 7e3fdc9 commit 20bd7b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const depsfile = joinpath(@__DIR__, "deps.jl")
# If BLAS was compiled with MKL and the user wants MKL-based FFTs, we'll oblige.
# In that case, we have to do this little dance to get around having to use BinDeps
# for a library that's already linked to Julia.
settings = joinpath(@__DIR__, "..", ".build_settings")
settings = joinpath(first(DEPOT_PATH), "prefs", "FFTW")
mkpath(dirname(settings))
if haskey(ENV, "JULIA_FFTW_PROVIDER")
provider = ENV["JULIA_FFTW_PROVIDER"]
open(f -> println(f, provider), settings, "w")
Expand Down

0 comments on commit 20bd7b2

Please sign in to comment.