From 876305adf0e8b7d90a2cfcb67ac44edd46085719 Mon Sep 17 00:00:00 2001
From: Howard Pritchard <hppritcha@gmail.com>
Date: Thu, 16 Jan 2020 11:21:34 -0700
Subject: [PATCH] mesa: check aarch64 system type as well (#14493)

to disabled use of libunwind.  Without this mesa fails to build
using recent Cray compilers - cce 9 and higher -  on aarch64 systems.

Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
---
 var/spack/repos/builtin/packages/mesa/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py
index 4717dacde2..d46c75796e 100644
--- a/var/spack/repos/builtin/packages/mesa/package.py
+++ b/var/spack/repos/builtin/packages/mesa/package.py
@@ -101,7 +101,7 @@ def configure_args(self):
         args_gallium_drivers = ['swrast']
         args_dri_drivers = []
 
-        if spec.target.family == 'arm':
+        if spec.target.family == 'arm' or spec.target.family == 'aarch64':
             args.append('--disable-libunwind')
 
         num_frontends = 0
-- 
GitLab