Ignore:
Timestamp:
Nov 23, 2012, 8:12:01 PM (8 years ago)
Author:
sam
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/vslol/MenuGenerateCompilers.cs

    r2113 r2115  
    115115                string flex_path = external_path + "\\external\\flex-2.5.35";
    116116                string bison_path = external_path + "\\external\\bison-2.4.2";
     117
     118                /* Workaround for an MSYS bug. If these directories don't
     119                 * exist, fork() will fail. Yeah, wtf. */
     120                try
     121                {
     122                    Directory.CreateDirectory(flex_path + "\\etc");
     123                    Directory.CreateDirectory(bison_path + "\\etc");
     124                }
     125                catch (Exception e) { }
    117126
    118127                // Run flex on all the .l files
Note: See TracChangeset for help on using the changeset viewer.