Lines Matching full:path
5 use std::path::{Path, PathBuf};
32 /// Gets the name of an LLVM or Clang static library from a path.
33 fn get_library_name(path: &Path) -> Option<String> {
34 path.file_stem().map(|p| {
51 // libraries may be in one of two forms, a full path to the library
53 if let Some(path) = p.strip_prefix("-l") {
54 Some(path.into())
56 get_library_name(Path::new(p))
63 fn get_clang_libraries<P: AsRef<Path>>(directory: P) -> Vec<String> {
67 let directory = Path::new(&directory);
80 /// path to that directory.