From 7a54ddd1a8cf2636927b2dc879c6548b5bd6a529 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 12 Oct 2018 10:49:46 -0400 Subject: [PATCH] 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 --- deps/build.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/build.jl b/deps/build.jl index 2eac875..e96c2a0 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -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")