diff --git a/bin/yashchiki b/bin/yashchiki index 68521702fed79e2d31a9bef07536f153928cf785..4ed81924fe2a2612d239ea5f9ad0c94c2a99c40b 100644 --- a/bin/yashchiki +++ b/bin/yashchiki @@ -245,6 +245,20 @@ with temporary_directory_spack_config.joinpath("config.yaml").open("wt") \ as spack_config_file: spack_config_file.write(yaml.dump(spack_config)) +# set spack concretizer +spack_concretizer = { + "concretizer": { + "targets": { + # allow building host-incompatible concretizations, e.g. for + # building on zen3 while requiring sandybridge + "host_compatible": False + } + } +} +with temporary_directory_spack_config.joinpath("concretizer.yaml").open("wt") \ + as spack_concretizer_file: + spack_concretizer_file.write(yaml.dump(spack_concretizer)) + spack_packages = pathlib.Path("share", "yashchiki", "styles", args.style, "packages.yaml") if spack_packages.exists(): shutil.copy( @@ -279,3 +293,4 @@ if args.update_build_cache: if args.tmpdir is None: shutil.rmtree(tmpdir) +