From 8e1a7484275dc59fccb581ebece78762e12bb039 Mon Sep 17 00:00:00 2001 From: Daiane Iglesia Dolci <63597005+Ig-dolci@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:06:32 +0000 Subject: [PATCH] Temp fix for firedrake install on Mac for Xcode16 (#3964) --- scripts/firedrake-install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/firedrake-install b/scripts/firedrake-install index 17a8d7fdbc..41bdc21b8f 100755 --- a/scripts/firedrake-install +++ b/scripts/firedrake-install @@ -792,6 +792,10 @@ def get_petsc_options(minimal=False): # on macOS with parallel solvers. Its necessity is unclear, so a # review in the future may be required. petsc_options.add("--LDFLAGS=-Wl,-ld_classic,-dead_strip_dylibs") + if Version(clt["version"]) >= Version("16"): + # Should revisit this flag when the the issue https://gitlab.com/petsc/petsc/-/issues/1692 + # is resolved. + petsc_options.add("--with-cxx-dialect=17") elif options.get("with_blas") is not None: petsc_options.add("--with-blaslapack-dir={}".format(options["with_blas"])) if osname == "Darwin":