From: José Fonseca Date: Fri, 17 Jun 2011 19:07:12 +0000 (+0100) Subject: scons: Don't list MSVS_VERSION option outside windows platforms. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9be435c79e2bbc883701c5533ae0490780495be;p=mesa.git scons: Don't list MSVS_VERSION option outside windows platforms. --- diff --git a/common.py b/common.py index f218e6f6c67..8f13186f52a 100644 --- a/common.py +++ b/common.py @@ -91,4 +91,5 @@ def AddOptions(opts): opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes')) opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no')) opts.Add(BoolOption('quiet', 'DEPRECATED: quiet command lines', 'yes')) - opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0'))) + if host_platform == 'windows': + opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0')))