delegate to cray modules for target args on cray (#17857)
This commit is contained in:
@@ -332,7 +332,11 @@ def set_compiler_environment_variables(pkg, env):
|
|||||||
env.set("SPACK_DTAGS_TO_ADD", compiler.enable_new_dtags)
|
env.set("SPACK_DTAGS_TO_ADD", compiler.enable_new_dtags)
|
||||||
|
|
||||||
# Set the target parameters that the compiler will add
|
# Set the target parameters that the compiler will add
|
||||||
isa_arg = spec.architecture.target.optimization_flags(compiler)
|
# Don't set on cray platform because the targeting module handles this
|
||||||
|
if spec.satisfies("platform=cray"):
|
||||||
|
isa_arg = ""
|
||||||
|
else:
|
||||||
|
isa_arg = spec.architecture.target.optimization_flags(compiler)
|
||||||
env.set("SPACK_TARGET_ARGS", isa_arg)
|
env.set("SPACK_TARGET_ARGS", isa_arg)
|
||||||
|
|
||||||
# Trap spack-tracked compiler flags as appropriate.
|
# Trap spack-tracked compiler flags as appropriate.
|
||||||
|
@@ -2755,7 +2755,9 @@ def _old_concretize(self, tests=False, deprecation_warning=True):
|
|||||||
|
|
||||||
# Check if we can produce an optimized binary (will throw if
|
# Check if we can produce an optimized binary (will throw if
|
||||||
# there are declared inconsistencies)
|
# there are declared inconsistencies)
|
||||||
self.architecture.target.optimization_flags(self.compiler)
|
# No need on platform=cray because of the targeting modules
|
||||||
|
if not self.satisfies("platform=cray"):
|
||||||
|
self.architecture.target.optimization_flags(self.compiler)
|
||||||
|
|
||||||
def _patches_assigned(self):
|
def _patches_assigned(self):
|
||||||
"""Whether patches have been assigned to this spec by the concretizer."""
|
"""Whether patches have been assigned to this spec by the concretizer."""
|
||||||
|
Reference in New Issue
Block a user