Preprocessor: tentative fix for testsuite crash in block/bytecode

time-shift
Sébastien Villemot 2011-04-28 10:41:43 +02:00
parent 7bc92541ad
commit 055104704e
1 changed files with 4 additions and 8 deletions

View File

@ -478,15 +478,11 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
<< "end" << endl;
// Erase possible remnants of previous runs
if (block || byte_code || use_dll)
mOutputFile << "if exist('" << basename << "_dynamic.m', 'file')" << endl
<< " delete('" << basename << "_dynamic.m');" << endl
<< "end" << endl;
string dynfile = basename + "_dynamic.m";
unlink(dynfile.c_str());
if (byte_code)
mOutputFile << "if exist('" << basename << "_static.m', 'file')" << endl
<< " delete('" << basename << "_static.m');" << endl
<< "end" << endl;
string statfile = basename + "_static.m";
unlink(statfile.c_str());
if (!use_dll)
mOutputFile << "erase_compiled_function('" + basename + "_dynamic');" << endl;