X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=common.py;h=742dabf4c45d38d269b5935375297c314436f14d;hb=83b76657b3dbf5e00d73bc03cc102317c4af6eca;hp=8372176edd7b3d72a39e1ac8c0dca0b8b0d8bb05;hpb=21780adc2ed1b10c5c4c71427b8212b8464d065d;p=mesa.git diff --git a/common.py b/common.py index 8372176edd7..742dabf4c45 100644 --- a/common.py +++ b/common.py @@ -34,10 +34,15 @@ else: default_machine = _platform.machine() default_machine = _machine_map.get(default_machine, 'generic') -if 'LLVM' in os.environ or subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0: +if 'LLVM' in os.environ: default_llvm = 'yes' else: default_llvm = 'no' + try: + if subprocess.call(['llvm-config', '--version'], stdout=subprocess.PIPE) == 0: + default_llvm = 'yes' + except: + pass if default_platform in ('linux', 'freebsd'): default_dri = 'yes'