Browse Source

scons: Fix force_scons parsing.

- Use parsed options instead of using ARGUMENTS directly.
- Handle the case of mingw cross compilation.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2003
tags/19.3-branchpoint
Jose Fonseca 7 years ago
parent
commit
ace5138548
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      SConstruct

+ 2
- 3
SConstruct View File

@@ -71,9 +71,8 @@ Help(opts.GenerateHelpText(env))
#######################################################################
# Print a deprecation warning for using scons on non-windows

if common.host_platform != 'windows':
force = ARGUMENTS['force_scons']
if force.lower() not in {'false', 'off', 'none', '0', 'n'}:
if common.host_platform != 'windows' and env['platform'] != 'windows':
if env['force_scons']:
print("WARNING: Scons is deprecated for non-windows platforms (including cygwin) "
"please use meson instead.", file=sys.stderr)
else:

Loading…
Cancel
Save