Skip to content

Commit

Permalink
fix UnboundLocalError if guess_win_linker fails in detect_fortran_com…
Browse files Browse the repository at this point in the history
…piler
  • Loading branch information
h-vetinari authored and dcbaker committed Feb 2, 2024
1 parent cb54f0d commit 6fcf863
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesonbuild/compilers/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ def detect_fortran_compiler(env: 'Environment', for_machine: MachineChoice) -> C

if 'flang' in out or 'clang' in out:
cls = fortran.FlangFortranCompiler
linker = None
if 'windows' in out or env.machines[for_machine].is_windows():
# If we're in a MINGW context this actually will use a gnu
# style ld, but for flang on "real" windows we'll use
Expand Down

0 comments on commit 6fcf863

Please sign in to comment.