From 818f7df793870f40845fe54e309a8c6c250ad52c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Wed, 8 Dec 2010 11:32:13 +0100
Subject: [PATCH] Preprocessor: delete remaining dynamic.m file when using
 USE_DLL

---
 ModFile.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ModFile.cc b/ModFile.cc
index ccb00841..30d813a4 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -429,7 +429,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
                 << "end" << endl;
 
   // Erase possible remnants of previous runs
-  if (block || byte_code)
+  if (block || byte_code || use_dll)
     mOutputFile << "if exist('" << basename << "_dynamic.m', 'file')" << endl
                 << "    delete('" << basename << "_dynamic.m');" << endl
                 << "end" << endl;
-- 
GitLab