diff options
-rw-r--r-- | lib/spack/spack/solver/asp.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index 712a21b05b..311b0c4753 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -12,6 +12,7 @@ import pprint import sys import time import types +import warnings from six import string_types import archspec.cpu @@ -1040,7 +1041,9 @@ class SpackSolverSetup(object): for target in targets: try: - target.optimization_flags(compiler_name, compiler_version) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + target.optimization_flags(compiler_name, compiler_version) supported.append(target) except archspec.cpu.UnsupportedMicroarchitecture: continue |