Add #! support for MinGW since newer shells support this.

This commit is contained in:
Cary R 2011-03-15 18:01:45 -07:00 committed by Stephen Williams
parent 9330b58a3a
commit c298939a88
1 changed files with 2 additions and 4 deletions

View File

@ -50,15 +50,13 @@ unsigned show_file_line = 0;
__inline__ static void draw_execute_header(ivl_design_t des)
{
#if !defined(__MINGW32__)
const char*cp = ivl_design_flag(des, "VVP_EXECUTABLE");
if (cp) {
fprintf(vvp_out, "#! %s\n", cp);
#if !defined(__MINGW32__)
fchmod(fileno(vvp_out), 0755);
}
#else
fprintf(vvp_out, "# MinGW does not support an executable header.\n");
#endif
}
fprintf(vvp_out, ":ivl_version \"" VERSION "\"");
/* I am assuming that a base release will have a blank tag. */
if (strcmp(VERSION_TAG, "") != 0) {