From 5472cb9d5a89c97a92f69074b98e8b44ae2c7d0b Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Wed, 23 Sep 2026 15:33:36 +0200 Subject: [PATCH 1/2] Load t8code_jll only if preferences say so also on prologue.jl --- dev/prologue.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev/prologue.jl b/dev/prologue.jl index f0ce91d..0360dd0 100644 --- a/dev/prologue.jl +++ b/dev/prologue.jl @@ -1,7 +1,9 @@ -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" From fb4f40f73f35878d8fb20c3f8f0d25091c497b43 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Wed, 23 Sep 2026 15:36:49 +0200 Subject: [PATCH 2/2] format --- dev/prologue.jl | 3 ++- src/Libt8.jl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/prologue.jl b/dev/prologue.jl index 0360dd0..35cdde8 100644 --- a/dev/prologue.jl +++ b/dev/prologue.jl @@ -1,6 +1,7 @@ using ..T8code: _PREFERENCE_LIBT8, _PREFERENCE_LIBP4EST, _PREFERENCE_LIBSC -@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || _PREFERENCE_LIBSC == "t8code_jll" +@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || + _PREFERENCE_LIBSC == "t8code_jll" using t8code_jll: t8code_jll end diff --git a/src/Libt8.jl b/src/Libt8.jl index 48bfbd5..41abf34 100644 --- a/src/Libt8.jl +++ b/src/Libt8.jl @@ -9,7 +9,8 @@ end using ..T8code: _PREFERENCE_LIBT8, _PREFERENCE_LIBP4EST, _PREFERENCE_LIBSC -@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || _PREFERENCE_LIBSC == "t8code_jll" +@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || + _PREFERENCE_LIBSC == "t8code_jll" using t8code_jll: t8code_jll end