pub fn get_clang_cl_resource_dir(clang_cl_path: &str) -> PathBuf
Expand description

Adapted from https://github.com/llvm/llvm-project/blob/782e91224601e461c019e0a4573bbccc6094fbcd/llvm/cmake/modules/HandleLLVMOptions.cmake#L1058-L1079

When clang-cl is used with instrumentation, we need to add clang’s runtime library resource directory to the linker flags, otherwise there will be linker errors about the profiler runtime missing. This function returns the path to that directory.