Skip to content

Commit

Permalink
[SCons] Disable Fortran for Apple clang by default
Browse files Browse the repository at this point in the history
On Apple Silicon, the combination of gfortran with Apple clang compilers
causes hard crashes for F90 examples, see Cantera#1379. Changing the default
avoids this issue; users can override by passing 'f90_interface=y' to
SCons. Short-term, the change also bypasses a recently introduced
linking issue on macOS, see Cantera#1387.
  • Loading branch information
ischoegl authored and jongyoonbae committed Feb 2, 2023
1 parent 3cd8e5e commit ea312c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit ea312c6

Please sign in to comment.