diff options
author | Denis Davydov <davydden@gmail.com> | 2017-05-04 08:43:06 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2017-05-04 08:43:06 +0200 |
commit | 7592971cb1cdd2af2c2a57cdea1186f2f782eebd (patch) | |
tree | 5c688acedf113498bb485eeabfd32ade9cd89229 /lib | |
parent | bee105fbb97a4eaf4ce5f215b50f2ea4f6683f6a (diff) | |
download | spack-7592971cb1cdd2af2c2a57cdea1186f2f782eebd.tar.gz spack-7592971cb1cdd2af2c2a57cdea1186f2f782eebd.tar.bz2 spack-7592971cb1cdd2af2c2a57cdea1186f2f782eebd.tar.xz spack-7592971cb1cdd2af2c2a57cdea1186f2f782eebd.zip |
add transitive run dependencies of direct build dependencies
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_environment.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index ac1eaaa77a..e216d4aa7c 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -259,9 +259,9 @@ def set_build_environment_variables(pkg, env, dirty=False): rpath_prefixes = [dep.prefix for dep in rpath_deps] # add run-time dependencies of direct build-time dependencies: - for bd in build_deps: - for rd in bd.dependencies(deptype='run'): - build_prefixes.append(rd.prefix) + for build_dep in build_deps: + for run_dep in build_dep.traverse(deptype='run'): + build_prefixes.append(run_dep.prefix) # Filter out system paths: ['/', '/usr', '/usr/local'] # These paths can be introduced into the build when an external package |