summaryrefslogtreecommitdiff
path: root/lib/spack/spack/spec.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/spec.py')
-rw-r--r--lib/spack/spack/spec.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 27c762bd40..fe859e1fc4 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -2816,9 +2816,7 @@ class Spec:
# Check if we can produce an optimized binary (will throw if
# there are declared inconsistencies)
- # No need on platform=cray because of the targeting modules
- if not self.satisfies("platform=cray"):
- self.architecture.target.optimization_flags(self.compiler)
+ self.architecture.target.optimization_flags(self.compiler)
def _patches_assigned(self):
"""Whether patches have been assigned to this spec by the concretizer."""