Skip to content

Commit

Permalink
store prefs in depot_path/prefs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stevengj authored Oct 12, 2018
1 parent 7e3fdc9 commit 7a54ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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")
if haskey(ENV, "JULIA_FFTW_PROVIDER")
provider = ENV["JULIA_FFTW_PROVIDER"]
open(f -> println(f, provider), settings, "w")
Expand Down

0 comments on commit 7a54ddd

Please sign in to comment.