Skip to content
Snippets Groups Projects

fix: set extensible target=$arch in site config

Merged Wouter Deconinck requested to merge allow-arch-in-site-config into master
2 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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}" \
Loading