13#include "llvm/Support/FileSystem.h"
14#include "llvm/Support/Path.h"
19using namespace llvm::sys;
27 if (fs::real_path(Linker,
Path))
29 llvm::StringRef LinkerName =
30 path::filename(llvm::StringRef(
Path.data(),
Path.size()));
34 if (LinkerName.starts_with(
"ld64.so"))
37 if (!LinkerName.starts_with(
"ld-2."))
39 unsigned Minor = (LinkerName[5] -
'0') * 10 + (LinkerName[6] -
'0');