bug hunting
This commit is contained in:
parent
751208cedf
commit
d2c2c46541
3 changed files with 6 additions and 5 deletions
|
@ -216,9 +216,9 @@ def compiler_for_spec(compiler_spec, target):
|
||||||
assert(compiler_spec.concrete)
|
assert(compiler_spec.concrete)
|
||||||
compilers = compilers_for_spec(compiler_spec)
|
compilers = compilers_for_spec(compiler_spec)
|
||||||
if target.compiler_strategy == "PATH":
|
if target.compiler_strategy == "PATH":
|
||||||
filter(lambda c: c.modules is None, compilers)
|
compilers = [c for c in compilers if c.modules is None]
|
||||||
elif target.compiler_strategy == "MODULES":
|
elif target.compiler_strategy == "MODULES":
|
||||||
filter(lambda c: c.modules is not None, compilers)
|
compilers = [c for c in compilers if c.modules is not None]
|
||||||
assert(len(compilers) == 1)
|
assert(len(compilers) == 1)
|
||||||
return compilers[0]
|
return compilers[0]
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ def is_spec_nobuild(spec):
|
||||||
|
|
||||||
|
|
||||||
def spec_externals(spec):
|
def spec_externals(spec):
|
||||||
"""Return a list of spec, directory pairs for each external location for spec"""
|
"""Return a list of spec, directory, module triples for each external location for spec"""
|
||||||
allpkgs = get_packages_config()
|
allpkgs = get_packages_config()
|
||||||
name = spec.name
|
name = spec.name
|
||||||
spec_locations = []
|
spec_locations = []
|
||||||
|
|
|
@ -771,6 +771,7 @@ def _replace_with(self, concrete):
|
||||||
"""Replace this virtual spec with a concrete spec."""
|
"""Replace this virtual spec with a concrete spec."""
|
||||||
assert(self.virtual)
|
assert(self.virtual)
|
||||||
for name, dependent in self.dependents.items():
|
for name, dependent in self.dependents.items():
|
||||||
|
if not dependent.external:
|
||||||
del dependent.dependencies[self.name]
|
del dependent.dependencies[self.name]
|
||||||
dependent._add_dependency(concrete)
|
dependent._add_dependency(concrete)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue