flag_mixing.py: add missing import (#48579)
This commit is contained in:
parent
e7c591a8b8
commit
976f1c2198
@ -10,6 +10,7 @@
|
|||||||
import spack.environment as ev
|
import spack.environment as ev
|
||||||
import spack.paths
|
import spack.paths
|
||||||
import spack.repo
|
import spack.repo
|
||||||
|
import spack.spec
|
||||||
import spack.util.spack_yaml as syaml
|
import spack.util.spack_yaml as syaml
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -100,8 +101,8 @@ def test_pkg_flags_from_compiler_and_none(concretize_scope, mock_packages):
|
|||||||
conf_str = _compiler_cfg_one_entry_with_cflags("-Wall")
|
conf_str = _compiler_cfg_one_entry_with_cflags("-Wall")
|
||||||
update_concretize_scope(conf_str, "compilers")
|
update_concretize_scope(conf_str, "compilers")
|
||||||
|
|
||||||
s1 = Spec("cmake%gcc@12.100.100")
|
s1 = spack.spec.Spec("cmake%gcc@12.100.100")
|
||||||
s2 = Spec("cmake-client^cmake%clang")
|
s2 = spack.spec.Spec("cmake-client^cmake%clang")
|
||||||
concrete = dict(spack.concretize.concretize_together([(s1, None), (s2, None)]))
|
concrete = dict(spack.concretize.concretize_together([(s1, None), (s2, None)]))
|
||||||
|
|
||||||
assert concrete[s1].compiler_flags["cflags"] == ["-Wall"]
|
assert concrete[s1].compiler_flags["cflags"] == ["-Wall"]
|
||||||
|
Loading…
Reference in New Issue
Block a user