diff options
author | GabrĂel ArthĂșr PĂ©tursson <gabriel@system.is> | 2017-12-30 12:39:55 +0000 |
---|---|---|
committer | GabrĂel ArthĂșr PĂ©tursson <gabriel@system.is> | 2017-12-30 14:03:59 +0000 |
commit | 2fc3fc8d672e83d67ec7372ad3eccc8717eb7124 (patch) | |
tree | 17e126654a50375966c882af9c70be91032ab56b /mesonbuild/mesonmain.py | |
parent | c8355c9ffa571c87a250adf6fe2054e8d4ddac53 (diff) | |
download | meson-2fc3fc8d672e83d67ec7372ad3eccc8717eb7124.zip meson-2fc3fc8d672e83d67ec7372ad3eccc8717eb7124.tar.gz meson-2fc3fc8d672e83d67ec7372ad3eccc8717eb7124.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index f811def..20ec304 100644 --- a/mesonbuild/mesonmain.py +++ b/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 |