summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-12-03 13:54:09 -0800
committerGitHub <noreply@github.com>2020-12-03 13:54:09 -0800
commitd6765fe95d8647dc4754736b5b7b93fc8ecd7802 (patch)
treedf557154a15e305f13eb0e66a4de309b50700ddf
parent09aae616c760a3abb782aa3353c3476851b6a590 (diff)
downloadspack-d6765fe95d8647dc4754736b5b7b93fc8ecd7802.tar.gz
spack-d6765fe95d8647dc4754736b5b7b93fc8ecd7802.tar.bz2
spack-d6765fe95d8647dc4754736b5b7b93fc8ecd7802.tar.xz
spack-d6765fe95d8647dc4754736b5b7b93fc8ecd7802.zip
avoid circular import (#20236)
-rw-r--r--lib/spack/spack/abi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/abi.py b/lib/spack/spack/abi.py
index a29a9eef3b..986583d270 100644
--- a/lib/spack/spack/abi.py
+++ b/lib/spack/spack/abi.py
@@ -8,7 +8,6 @@ import os
from llnl.util.lang import memoized
import spack.spec
-from spack.build_environment import dso_suffix
from spack.spec import CompilerSpec
from spack.util.executable import Executable, ProcessError
from spack.compilers.clang import Clang
@@ -30,6 +29,7 @@ class ABI(object):
def _gcc_get_libstdcxx_version(self, version):
"""Returns gcc ABI compatibility info by getting the library version of
a compiler's libstdc++ or libgcc_s"""
+ from spack.build_environment import dso_suffix
spec = CompilerSpec("gcc", version)
compilers = spack.compilers.compilers_for_spec(spec)
if not compilers: