From 4dee700ca5ddb363cdee4e1e0a266dc405e47bee Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 15 Mar 2011 17:58:29 -0700 Subject: [PATCH] V0.8: Add #! support for MinGW since newer shells support this. --- tgt-vvp/vvp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tgt-vvp/vvp.c b/tgt-vvp/vvp.c index 53226d2f3..42833b397 100644 --- a/tgt-vvp/vvp.c +++ b/tgt-vvp/vvp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001-2010 Stephen Williams (steve@icarus.com) + * Copyright (c) 2001-2011 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -31,15 +31,13 @@ FILE*vvp_out = 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 "\";\n"); }