From: Keith Whitwell Date: Wed, 19 May 2010 12:27:31 +0000 (+0100) Subject: scons: don't set default_llvm on windows unles LLVM is defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a536c204e289c46b0d493acfb4ebaf99f2b05189;p=mesa.git scons: don't set default_llvm on windows unles LLVM is defined Otherwise we'll raise an error later in llvm.py --- diff --git a/common.py b/common.py index 742dabf4c45..300e91a3766 100644 --- a/common.py +++ b/common.py @@ -39,7 +39,7 @@ if 'LLVM' in os.environ: else: default_llvm = 'no' try: - if subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0: + if env['platform'] != 'windows' and subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0: default_llvm = 'yes' except: pass