MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ resolve_resource_dir()

std::string MayaFlux::Reflect::Tool::resolve_resource_dir ( const std::string & configured)
nodiscard

The Clang resource directory a build scan uses.

configured when it names a directory, else the output of clang -print-resource-dir.

Returns
The directory, or empty when neither exists.

Definition at line 60 of file Build.cpp.

61{
62 if (!configured.empty() && llvm::sys::fs::is_directory(configured)) {
63 return configured;
64 }
65 std::string found = clang_resource_dir();
66 if (found.empty() || !llvm::sys::fs::is_directory(found)) {
67 return {};
68 }
69 return found;
70}

Referenced by run_creator_build(), run_function_build(), and run_reflect_build().

Here is the caller graph for this function: