Skip to content
Snippets Groups Projects
Commit af0d038f authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: arch -> target

parent 3eb59649
No related branches found
No related tags found
1 merge request!571fix: set extensible target=$arch in site config
This commit is part of merge request !571. Comments created here will be created in the context of that merge request.
...@@ -44,12 +44,12 @@ RUN git clone https://github.com/${SPACK_ORGREPO}.git ${SPACK_ROOT} \ ...@@ -44,12 +44,12 @@ RUN git clone https://github.com/${SPACK_ORGREPO}.git ${SPACK_ROOT} \
SHELL ["docker-shell"] SHELL ["docker-shell"]
ARG jobs=64 ARG jobs=64
RUN declare -A arch=( \ RUN declare -A target=( \
["linux/amd64"]="x86_64" \ ["linux/amd64"]="x86_64" \
["linux/arm64"]="aarch64" \ ["linux/arm64"]="aarch64" \
) \ ) \
&& arch=${arch[${TARGETPLATFORM}]} \ && target=${target[${TARGETPLATFORM}]} \
&& spack config --scope site add "packages:all:require:[arch=${arch}]" \ && spack config --scope site add "packages:all:require:[target=${target}]" \
&& spack config blame packages \ && spack config blame packages \
&& spack config --scope site add "config:suppress_gpg_warnings:true" \ && spack config --scope site add "config:suppress_gpg_warnings:true" \
&& spack config --scope site add "config:build_jobs:${jobs}" \ && spack config --scope site add "config:build_jobs:${jobs}" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment