diff options
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index f6a08ce8cb..56aaf7d5cf 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -154,9 +154,20 @@ static bool isBytecodeLPath(const std::string &LibPath) { sys::Path LPath(LibPath); + // Make sure it exists + if (!LPath.exists()) + return isBytecodeLPath; + // Make sure its a directory - if (!LPath.isDirectory()) + try + { + if (!LPath.isDirectory()) + return isBytecodeLPath; + } + catch (std::string& xcptn) + { return isBytecodeLPath; + } // Grab the contents of the -L path std::set<sys::Path> Files; |