From 9117dfd11854d38b5ad3dda2101c6d3a9620ff98 Mon Sep 17 00:00:00 2001
From: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Date: Sun, 29 Sep 2019 06:47:05 +0200
Subject: [PATCH] Add all the 'generic' architectures that are mentioned in
 recipes (#12958)

LLVM, mesa and other packages check for these generic
microarchitectures. One solution is to let Spack know they exist.
---
 .../llnl/util/cpu/microarchitectures.json     | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/lib/spack/llnl/util/cpu/microarchitectures.json b/lib/spack/llnl/util/cpu/microarchitectures.json
index 1ee782b408..2e20cc98f8 100644
--- a/lib/spack/llnl/util/cpu/microarchitectures.json
+++ b/lib/spack/llnl/util/cpu/microarchitectures.json
@@ -825,6 +825,41 @@
           "flags": "-march=armv8-a -mtune=generic"
         }
       }
+    },
+    "arm": {
+      "from": null,
+      "vendor": "generic",
+      "features": [],
+      "compilers": {
+      }
+    },
+    "ppc": {
+      "from": null,
+      "vendor": "generic",
+      "features": [],
+      "compilers": {
+      }
+    },
+    "ppcle": {
+      "from": null,
+      "vendor": "generic",
+      "features": [],
+      "compilers": {
+      }
+    },
+    "sparc": {
+      "from": null,
+      "vendor": "generic",
+      "features": [],
+      "compilers": {
+      }
+    },
+    "sparc64": {
+      "from": null,
+      "vendor": "generic",
+      "features": [],
+      "compilers": {
+      }
     }
   },
   "feature_aliases": {
-- 
GitLab