Skip to content
Snippets Groups Projects
Commit 8fc425a4 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Still to many compilers installed

parent 586bec48
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,15 @@ ${STACK_LOCATION}/spack/bin/spack compiler find --scope system /usr
for c in "core_compilers" "compilers"; do
echo "Installing $c"
_specs=$(comp=$c jq -Mr '.stack | .system_arch as $arch | with_entries(select(.key==env.comp)) | to_entries | .[].value | map("\(.spec) \($arch)")[]' ${STACK_CONFIG})
_specs=$(comp=$c jq -Mr '
.stack
| .system_arch as $arch
| with_entries(select(.key==env.comp))
| to_entries
| .[].value
| map(select(.constraint == null))
| map("\(.spec) \($arch)")[]
' ${STACK_CONFIG})
echo "Compilers to install:"
echo "${_specs}"
......@@ -69,6 +77,7 @@ compilers_specs=$(jq -Mr '
.stack
| .system_arch as $arch
| .core_compilers + .compilers
| map(select(.constraint == null))
| map("\(.spec) \($arch)")
' ${STACK_CONFIG})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment