Lines Matching refs:directory
48 /// a path is supplied, that is the first directory searched. Then, the
49 /// directory returned by `llvm-config --bindir` is searched. On macOS
135 /// directory if there are any matches.
136 fn find(directory: &Path, patterns: &[&str]) -> Option<PathBuf> {
137 // Escape the directory in case it contains characters that have special
139 let directory = if let Some(directory) = directory.to_str() {
140 Path::new(&Pattern::escape(directory)).to_owned()
146 let pattern = directory.join(pattern).to_string_lossy().into_owned();
228 let paths = output[start..end].replace("(framework directory)", "");