From dbdd3f021e6af725edd6334b63538c92eae872b5 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Mon, 12 Sep 2022 11:36:57 -0500 Subject: [PATCH] [SCons] Disable Fortran for Apple clang by default On Apple Silicon, the combination of gfortran with Apple clang compilers causes hard crashes for F90 examples. Changing the default avoids this issue; users can override by passing 'f90_interface=y' to SCons. --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SConstruct b/SConstruct index 85d0b93107c..3e594242b5c 100644 --- a/SConstruct +++ b/SConstruct @@ -1411,6 +1411,9 @@ end program main set_fortran("{}FLAGS", env["FORTRANFLAGS"]) +if env["using_apple_clang"] and env["f90_interface"] == "default": + env["f90_interface"] = "n" + if env['f90_interface'] in ('y','default'): foundF90 = False if env['FORTRAN']: