From 3d750e35399fc875711f396452fc27bc283857aa Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Thu, 26 Nov 2020 21:07:23 +0200 Subject: [PATCH] Fix a regressive crash when generating parser bindings Signed-off-by: Dimitar Dobrev --- src/CppParser/ParserGen/ParserGen.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CppParser/ParserGen/ParserGen.cs b/src/CppParser/ParserGen/ParserGen.cs index 1d00bd06..b7cff34d 100644 --- a/src/CppParser/ParserGen/ParserGen.cs +++ b/src/CppParser/ParserGen/ParserGen.cs @@ -35,8 +35,7 @@ namespace CppSharp { var path = Path.Combine(directory.FullName, dir); - if (Directory.Exists(path) && - Directory.Exists(Path.Combine(directory.FullName, "deps"))) + if (Directory.Exists(path)) return path; directory = directory.Parent;