summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-09-30 19:15:01 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2020-11-17 10:04:13 -0800
commit2ea8bd0b195daa31be2d87995f2cab24cf91276f (patch)
tree9e075cea0228f032bc69cb1442ca423fdf5d9d77 /lib
parent28afdb9530a31113227b46b32ff96bb16329f40f (diff)
downloadspack-2ea8bd0b195daa31be2d87995f2cab24cf91276f.tar.gz
spack-2ea8bd0b195daa31be2d87995f2cab24cf91276f.tar.bz2
spack-2ea8bd0b195daa31be2d87995f2cab24cf91276f.tar.xz
spack-2ea8bd0b195daa31be2d87995f2cab24cf91276f.zip
concretizer: prefer using the same compiler over using newer versions
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/solver/concretize.lp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp
index 90622fb45d..64f8c6ff6c 100644
--- a/lib/spack/spack/solver/concretize.lp
+++ b/lib/spack/spack/solver/concretize.lp
@@ -386,15 +386,15 @@ root(Dependency, 1) :- not root(Dependency), node(Dependency).
Weight*R@9,Provider : provider_weight(Provider, Weight), root(Package, R)
}.
+% compiler preferences
+#maximize{ Weight@8,Package : compiler_match(Package, Weight) }.
+#minimize{ Weight@7,Package : compiler_weight(Package, Weight) }.
+
% prefer more recent versions.
#minimize{
- Weight@8,Package : version_weight(Package, Weight)
+ Weight@6,Package : version_weight(Package, Weight)
}.
-% compiler preferences
-#maximize{ Weight@7,Package : compiler_match(Package, Weight) }.
-#minimize{ Weight@6,Package : compiler_weight(Package, Weight) }.
-
% fastest target for node
% TODO: if these are slightly different by compiler (e.g., skylake is