From 6cbb6063c48095b6c0417d1830b602e3c223fff3 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Thu, 30 May 2024 17:44:58 -0500 Subject: [PATCH] Better detection of compiler environments --- bin/build-spack-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build-spack-env.sh b/bin/build-spack-env.sh index de90208..372d215 100755 --- a/bin/build-spack-env.sh +++ b/bin/build-spack-env.sh @@ -955,7 +955,7 @@ _process_environment() { # # then note that fact. (( ++env_idx )) - [[ "$env_spec" =~ ^$known_compilers_re([~+@%[:space:]].*)?$ ]] \ + [[ "$env_spec" =~ ^$known_compilers_re[@-][0-9] ]] \ && is_compiler_env=1 \ && (( num_environments > env_idx )) \ && is_nonterminal_compiler_env=1