Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mesonbuild/compilers/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,10 @@ def detect_cython_compiler(env: 'Environment', for_machine: MachineChoice) -> Co

def detect_vala_compiler(env: 'Environment', for_machine: MachineChoice) -> Compiler:
from .vala import ValaCompiler
exelist = env.lookup_binary_entry(MachineChoice.BUILD, 'vala')
exelist = env.lookup_binary_entry(for_machine, 'vala')
if exelist is None and for_machine != MachineChoice.BUILD:
# This is wrong, but backwards-compatible.
exelist = env.lookup_binary_entry(MachineChoice.BUILD, 'vala')
if exelist is None:
# TODO support fallback
exelist = [defaults['vala'][0]]
Expand Down
Loading