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

Forgot to change the scripts

parent b56eb6da
No related branches found
No related tags found
No related merge requests found
Pipeline #181729 failed
#!/usr/bin/env sh #!/usr/bin/env sh
COMPILER_LIST_SPECS=$(jq -Mr '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.spec_version) %\($core)")[]' config.json) STACK_CONFIG=stacks/${stack}/config.json
COMPILER_LIST_SPECS=$(jq -Mr '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.spec_version) %\($core)")[]' ${STACK_CONFIG})
echo "Getting system compiler" echo "Getting system compiler"
spack/bin/spack compiler find --scope system /usr spack/bin/spack compiler find --scope system /usr
...@@ -38,11 +40,11 @@ spack/bin/spack buildcache create \ ...@@ -38,11 +40,11 @@ spack/bin/spack buildcache create \
--key EDC904DCE3D2E84E \ --key EDC904DCE3D2E84E \
/buildcache ${hashes} /buildcache ${hashes}
core_compiler=$(jq -Mrc '.stack | .core_compiler' config.json) core_compiler=$(jq -Mrc '.stack | .core_compiler' ${STACK_CONFIG})
compilers=$(jq -Mrc '.stack | .compilers | to_entries | map("\(.key)@\(.value.version)")' config.json) compilers=$(jq -Mrc '.stack | .compilers | to_entries | map("\(.key)@\(.value.version)")' ${STACK_CONFIG})
compilers_specs=$(jq -Mrc '.stack | .compilers | map("\(.spec)@\(.spec_version)")' config.json) compilers_specs=$(jq -Mrc '.stack | .compilers | map("\(.spec)@\(.spec_version)")' ${STACK_CONFIG})
cat > compiler_definitions.yaml << EOF cat > stacks/${stack}/compiler_definitions.yaml << EOF
definitions: definitions:
- core_compiler: [ ${core_compiler} ] - core_compiler: [ ${core_compiler} ]
- compilers: ${compilers} - compilers: ${compilers}
......
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