summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-12-03 13:54:09 -0800
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:21 -0800
commit30290acf67f56109393d3d30c328e9f5658a2996 (patch)
treee54b3e787ae8a89125462f1ca884557478f7c276
parent92de48422822a6ee2be94551fa604e4b75dab99f (diff)
downloadspack-30290acf67f56109393d3d30c328e9f5658a2996.tar.gz
spack-30290acf67f56109393d3d30c328e9f5658a2996.tar.bz2
spack-30290acf67f56109393d3d30c328e9f5658a2996.tar.xz
spack-30290acf67f56109393d3d30c328e9f5658a2996.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: