diff options
| author | H. Vetinari <h.vetinari@gmx.com> | 2024-02-02 14:38:22 +0100 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-02-02 09:24:41 -0800 |
| commit | 6fcf8632c6ca7c7d3812bf611ca99820264fae65 (patch) | |
| tree | d77e13a6c49a9e736817a416acbc28fb083e2c09 | |
| parent | cb54f0d707e5673eb1d8aaafae59a6d5fde25e18 (diff) | |
| download | meson-6fcf8632c6ca7c7d3812bf611ca99820264fae65.tar.gz | |
fix UnboundLocalError if guess_win_linker fails in detect_fortran_compiler
| -rw-r--r-- | mesonbuild/compilers/detect.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index 2df6f134d..1f6bb4840 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -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 |
