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

cleaning compilers installations

parent 17d5e198
No related branches found
No related tags found
1 merge request!3Feat/stack pinot noir
......@@ -131,10 +131,21 @@ jq -Mrc '
| .system_arch as $arch
| .compilers
| to_entries
| map(select(.value.constraint == null))
| map(" - compiler_\(.key): [\(.value.compiler)@\(.value.version) target=\(env.target)]")
| .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/compiler_definitions.yaml
jq -Mrc '
.stack
| .system_arch as $arch
| .compilers
| to_entries
| map(select(.value.constraint != null))
| map(" - compiler_\(.key): []\n - when: \(.value.constraint)\n compiler_\(.key): [\(.value.compiler)@\(.value.version) target=\(env.target)]")
| .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/compiler_definitions.yaml
cat ${SPACK_SYSTEM_CONFIG_PATH}/compiler_definitions.yaml
#yq -y -s ".[0].spack.definitions = .[1].definitions + .[0].spack.definitions | .[0]" ${SPACK_SYSTEM_CONFIG_PATH}/spack.yaml ${SPACK_SYSTEM_CONFIG_PATH}/compiler_definitions.yaml > ${SPACK_SYSTEM_CONFIG_PATH}/spack.yaml.new
......
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