diff --git a/lib/spack/spack/target.py b/lib/spack/spack/target.py index e4e8217a368..c7a166b9f8c 100644 --- a/lib/spack/spack/target.py +++ b/lib/spack/spack/target.py @@ -3,7 +3,6 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import functools -import warnings import six @@ -134,7 +133,7 @@ def optimization_flags(self, compiler): msg = ('microarchitecture specific optimizations are not ' 'supported yet on mixed compiler toolchains [check' ' {0.name}@{0.version} for further details]') - warnings.warn(msg.format(compiler)) + tty.debug(msg.format(compiler)) return '' # Try to check if the current compiler comes with a version number or