diff options
| author | Joshua Yanovski <pythonesque@gmail.com> | 2013-10-25 22:13:23 -0700 |
|---|---|---|
| committer | Joshua Yanovski <pythonesque@gmail.com> | 2013-10-26 10:46:38 -0700 |
| commit | a239c0ed66c511886ad0e2acf5b550d25b37427c (patch) | |
| tree | 069252a6607bacd28832830b6ddb7fb8164227f7 /src/librustpkg/util.rs | |
| parent | 950add4e49cc2ac5d60abd6da969392123ddcce0 (diff) | |
| download | rust-a239c0ed66c511886ad0e2acf5b550d25b37427c.tar.gz rust-a239c0ed66c511886ad0e2acf5b550d25b37427c.zip | |
Make addl_lib_search_paths a HashSet (Closes #7718).
Diffstat (limited to 'src/librustpkg/util.rs')
| -rw-r--r-- | src/librustpkg/util.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs index 3824f6d38de..026f443ec79 100644 --- a/src/librustpkg/util.rs +++ b/src/librustpkg/util.rs @@ -285,11 +285,7 @@ pub fn compile_input(context: &BuildContext, debug!("a dependency: {}", p.display()); // Pass the directory containing a dependency // as an additional lib search path - if !addl_lib_search_paths.contains(&p) { - // Might be inefficient, but this set probably - // won't get too large -- tjc - addl_lib_search_paths.push(p); - } + addl_lib_search_paths.insert(p); }); // Inject the link attributes so we get the right package name and version |
