summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/platforms/_functions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/platforms/_functions.py b/lib/spack/spack/platforms/_functions.py
index 17dfbb5d67..c1301c47ff 100644
--- a/lib/spack/spack/platforms/_functions.py
+++ b/lib/spack/spack/platforms/_functions.py
@@ -13,6 +13,7 @@ from .test import Test
platforms = [Cray, Darwin, Linux, Test]
+@llnl.util.lang.memoized
def _host():
"""Detect and return the platform for this machine or None if detection fails."""
for platform_cls in sorted(platforms, key=lambda plt: plt.priority):