delete PLATFORM env only if set

fixes #8721
pull/9420/head
avitex 3 years ago committed by Eli Schwartz
parent 2c079d855e
commit 2046593825
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 5
      mesonbuild/mcompile.py

@ -224,9 +224,10 @@ def get_parsed_args_vs(options: 'argparse.Namespace', builddir: Path) -> T.Tuple
cmd += options.vs_args
# Remove platform from env so that msbuild does not pick x86 platform when solution platform is Win32
# Remove platform from env if set so that msbuild does not
# pick x86 platform when solution platform is Win32
env = os.environ.copy()
del env['PLATFORM']
env.pop('PLATFORM', None)
return cmd, env

Loading…
Cancel
Save