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

Sorting gcc at begining

parent 0430da84
No related branches found
No related tags found
1 merge request!5Adding nvhpc to kuma
Pipeline #205651 failed
......@@ -13,7 +13,7 @@ system_compiler=$(jq -Mrc '
| map("\(.compiler)@\(.version) \($arch)")
' ${STACK_CONFIG})
_compilers=$(jq -Mrc '.stack
_compilers=$(jq -Mr '.stack
| .system_arch as $arch
| .compilers
| to_entries
......@@ -22,7 +22,10 @@ _compilers=$(jq -Mrc '.stack
| select((.constraint == null) or (.constraint? | index(env.environment)))
' ${STACK_CONFIG})
compilers_names=$(echo ${_compilers} | jq -Mrc '. | "\(.name)"')
# list compilers and ensure gcc is first
compilers_names="gcc $(echo ${_compilers} | jq -Mrs '. | map("\(.name)") | .[]' | egrep -v '^gcc$')"
echo ${compilers_names}
echo "List compilers:"
echo ${_compilers} | jq -C '.'
......
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