-use std::collections::{HashMap, HashSet};
+use std::collections::{HashMap, HashSet, BTreeSet};
use std::ffi::OsStr;
use std::path::PathBuf;
use semver::Version;
///
/// This is currently used to drive some entries which are added to the
/// LD_LIBRARY_PATH as appropriate.
+ ///
+ /// The order should be deterministic.
// TODO: deprecated, remove
- pub native_dirs: HashSet<PathBuf>,
+ pub native_dirs: BTreeSet<PathBuf>,
/// Root output directory (for the local package's artifacts)
pub root_output: PathBuf,
pub fn new(config: &'cfg Config) -> Compilation<'cfg> {
Compilation {
libraries: HashMap::new(),
- native_dirs: HashSet::new(), // TODO: deprecated, remove
+ native_dirs: BTreeSet::new(), // TODO: deprecated, remove
root_output: PathBuf::from("/"),
deps_output: PathBuf::from("/"),
host_deps_output: PathBuf::from("/"),