Preprocessor: tentative fix for testsuite crash in block/bytecode
parent
7bc92541ad
commit
055104704e
|
@ -478,15 +478,11 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
|
||||||
<< "end" << endl;
|
<< "end" << endl;
|
||||||
|
|
||||||
// Erase possible remnants of previous runs
|
// Erase possible remnants of previous runs
|
||||||
if (block || byte_code || use_dll)
|
string dynfile = basename + "_dynamic.m";
|
||||||
mOutputFile << "if exist('" << basename << "_dynamic.m', 'file')" << endl
|
unlink(dynfile.c_str());
|
||||||
<< " delete('" << basename << "_dynamic.m');" << endl
|
|
||||||
<< "end" << endl;
|
|
||||||
|
|
||||||
if (byte_code)
|
string statfile = basename + "_static.m";
|
||||||
mOutputFile << "if exist('" << basename << "_static.m', 'file')" << endl
|
unlink(statfile.c_str());
|
||||||
<< " delete('" << basename << "_static.m');" << endl
|
|
||||||
<< "end" << endl;
|
|
||||||
|
|
||||||
if (!use_dll)
|
if (!use_dll)
|
||||||
mOutputFile << "erase_compiled_function('" + basename + "_dynamic');" << endl;
|
mOutputFile << "erase_compiled_function('" + basename + "_dynamic');" << endl;
|
||||||
|
|
Loading…
Reference in New Issue