summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscheibelp <scheibel1@llnl.gov>2017-05-04 10:32:50 -0700
committerGitHub <noreply@github.com>2017-05-04 10:32:50 -0700
commit0cf406d7b6614b52640c8f1c54d370768fa8d8f1 (patch)
treeac0d94315737a78369e15b9eaa372d49ca020281
parent26a9793148fe419b2895fe325b63dbe66df74b29 (diff)
parent7592971cb1cdd2af2c2a57cdea1186f2f782eebd (diff)
downloadspack-0cf406d7b6614b52640c8f1c54d370768fa8d8f1.tar.gz
spack-0cf406d7b6614b52640c8f1c54d370768fa8d8f1.tar.bz2
spack-0cf406d7b6614b52640c8f1c54d370768fa8d8f1.tar.xz
spack-0cf406d7b6614b52640c8f1c54d370768fa8d8f1.zip
Merge pull request #4121 from davydden/fix_transitive_build_dep_2
add transitive run dependencies of direct build dependencies
-rw-r--r--lib/spack/spack/build_environment.py6
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