Skip to content
Browse files

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

  • Loading branch information...
1 parent 9330b58 commit c298939a880063afc08ec2d0a3b046db920bc624 @caryr caryr committed with steveicarus
Showing with 2 additions and 4 deletions.
  1. +2 −4 tgt-vvp/vvp.c
View
6 tgt-vvp/vvp.c
@@ -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) {

0 comments on commit c298939

Please sign in to comment.
Something went wrong with that request. Please try again.