From 8b9d0e91b5f6aba206f10c8797f46e5015ef4ada 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

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

diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc
index ccb008410..30d813a41 100644
--- a/preprocessor/ModFile.cc
+++ b/preprocessor/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