From 96f318c92e0c1c259506c06395437671d31bf919 Mon Sep 17 00:00:00 2001
From: Nicolas Richart <nicolas.richart@epfl.ch>
Date: Fri, 26 Jan 2024 01:11:31 +0100
Subject: [PATCH] find system compiler before needing it

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd39c0d..3abcc73 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -117,6 +117,8 @@ spack:install_compilers:
     - COMPILER_LIST_SPECS=$(jq -r '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")[]' config.json)
     - echo "Compilers to install \n${COMPILER_LIST_SPECS}"
 
+    - spack/bin/spack compiler find --scope system /usr
+
     - spack/bin/spack spec
       --install-status
       --namespaces
@@ -139,8 +141,6 @@ spack:install_compilers:
     - |
       echo 'definitions: [ compilers: [' ${COMPILER_LIST_SPECS} ']]' > compiler_definitions.yaml
 
-    - spack/bin/spack compiler find --scope system /usr
-
     - |
       while read -r compiler
       do
-- 
GitLab