Skip to content
Snippets Groups Projects

Feat/stack pinot noir

Merged Nicolas Richart requested to merge feat/stack_pinot_noir into main
Compare and Show latest version
39 files
+ 343
282
Compare changes
  • Side-by-side
  • Inline
Files
39
+ 11
7
@@ -73,13 +73,6 @@ for c in "core_compilers" "compilers"; do
fi
done
export target=$(jq -Mrc '
.stack.targets
| to_entries
| .[]
| select(.key == env.environment)
| .value' ${STACK_CONFIG})
compilers_specs=$(jq -Mr '
.stack
| .system_arch as $arch
@@ -131,10 +124,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
Loading