Remember which Visual Studio backend was auto-detected

This fixes the REGEN build target since VSINSTALLDIR does not get set by
Visual Studio when building targets.

Fixes #2848.
pull/2849/head
Gabríel Arthúr Pétursson 7 years ago
parent c8355c9ffa
commit 2fc3fc8d67
  1. 1
      mesonbuild/mesonmain.py

@ -172,6 +172,7 @@ class MesonApp:
elif self.options.backend == 'vs':
from .backend import vs2010backend
g = vs2010backend.autodetect_vs_version(b)
env.coredata.set_builtin_option('backend', g.name)
mlog.log('Auto detected Visual Studio backend:', mlog.bold(g.name))
elif self.options.backend == 'vs2010':
from .backend import vs2010backend

Loading…
Cancel
Save