From 8dd096217ffa6360d649de8a8161f324730a22be Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 23 Nov 2012 19:12:01 +0000 Subject: [PATCH] vslol: create an etc/ directory beside bison's and flex's to work around an MSYS bug in the main DLL, and copy the m4.exe binary we ship with bison into the flex directory, too. --- tools/vslol/AssemblyInfo.cs | 4 ++-- tools/vslol/MenuGenerateCompilers.cs | 9 +++++++++ tools/vslol/source.extension.vsixmanifest | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/vslol/AssemblyInfo.cs b/tools/vslol/AssemblyInfo.cs index ae95e5f7..fdf5a7aa 100644 --- a/tools/vslol/AssemblyInfo.cs +++ b/tools/vslol/AssemblyInfo.cs @@ -20,5 +20,5 @@ using System.Runtime.InteropServices; // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("58968f91-edb8-4a4c-9f4f-ba39fdb4a21a")] -[assembly: AssemblyVersion("1.0.0.2")] -[assembly: AssemblyFileVersion("1.0.0.2")] +[assembly: AssemblyVersion("1.0.0.3")] +[assembly: AssemblyFileVersion("1.0.0.3")] diff --git a/tools/vslol/MenuGenerateCompilers.cs b/tools/vslol/MenuGenerateCompilers.cs index 8d0bdefe..dd0b05fc 100644 --- a/tools/vslol/MenuGenerateCompilers.cs +++ b/tools/vslol/MenuGenerateCompilers.cs @@ -115,6 +115,15 @@ namespace Lol.VisualStudio.Plugin string flex_path = external_path + "\\external\\flex-2.5.35"; string bison_path = external_path + "\\external\\bison-2.4.2"; + /* Workaround for an MSYS bug. If these directories don't + * exist, fork() will fail. Yeah, wtf. */ + try + { + Directory.CreateDirectory(flex_path + "\\etc"); + Directory.CreateDirectory(bison_path + "\\etc"); + } + catch (Exception e) { } + // Run flex on all the .l files foreach (ProjectItem item in ParseProjectItems(project)) { diff --git a/tools/vslol/source.extension.vsixmanifest b/tools/vslol/source.extension.vsixmanifest index f1751ad8..45a11d44 100644 --- a/tools/vslol/source.extension.vsixmanifest +++ b/tools/vslol/source.extension.vsixmanifest @@ -3,7 +3,7 @@ VsLol Lol - 1.0.0.2 + 1.0.0.3 Lol Engine Productivity Tools. 1033 false