X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=SConstruct;h=f905189dd9e518624bc1b4d7f1092bfe6f0728d0;hb=b7c47c4f7cfd0513ee2b98179cc22f402e5b3817;hp=61a915f7debbc075e02fc2c14aefd1b430f87e94;hpb=61ed9891c7c5c231c755f96afda7a0341fcf02e4;p=mesa.git diff --git a/SConstruct b/SConstruct index 61a915f7deb..f905189dd9e 100644 --- a/SConstruct +++ b/SConstruct @@ -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: