aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabrĂ­el ArthĂșr PĂ©tursson <gabriel@system.is>2017-12-30 12:39:55 +0000
committerNirbheek Chauhan <nirbheek@centricular.com>2018-02-19 01:32:17 +0530
commit2bc62406c784a9639e537192455bb9fbd3989945 (patch)
tree6baa8947a796f87d33c2eb0f0c989fde6267cff4
parentd5d769cd9d6f41b078c561e2093ddae5fa0a0052 (diff)
downloadmeson-2bc62406c784a9639e537192455bb9fbd3989945.zip
meson-2bc62406c784a9639e537192455bb9fbd3989945.tar.gz
meson-2bc62406c784a9639e537192455bb9fbd3989945.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.
-rw-r--r--mesonbuild/mesonmain.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py
index f261935..5c97f00 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