From 1dca402eb2f6a50be0ee812cf2ff0104afc4d092 Mon Sep 17 00:00:00 2001 From: Benedict Geihe Date: Tue, 15 Sep 2026 23:18:49 +0200 Subject: [PATCH] only load t8code_jll if preferences say so --- src/Libt8.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Libt8.jl b/src/Libt8.jl index a1b9f1a..121bce7 100644 --- a/src/Libt8.jl +++ b/src/Libt8.jl @@ -7,10 +7,12 @@ to_c_type_pairs(va_list) = map(enumerate(to_c_type.(va_list))) do (ind, type) :(va_list[$ind]::$type) end -using t8code_jll: t8code_jll -export t8code_jll - using ..T8code: _PREFERENCE_LIBT8, _PREFERENCE_LIBP4EST, _PREFERENCE_LIBSC + +@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || _PREFERENCE_LIBSC == "t8code_jll" + using t8code_jll: t8code_jll +end + using MPIPreferences: MPIPreferences @static if _PREFERENCE_LIBT8 == "t8code_jll" && MPIPreferences.binary == "system"