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. Changing the default avoids this
issue; users can override by passing 'f90_interface=y' to SCons.
  • Loading branch information
ischoegl committed Sep 22, 2022
1 parent 5e15f57 commit dbdd3f0
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 dbdd3f0

Please sign in to comment.