fix trouble in ilib_build functions on detection of DEBUG mode under Windows 77/17777/2
Antoine ELIAS [Sat, 6 Feb 2016 13:25:28 +0000 (14:25 +0100)]
Change-Id: I638fa4a6e8f7e34fe4c4d4ff784f5fceaf7cc845

scilab/modules/dynamic_link/macros/windows/dlwGenerateMakefile.sci

index 40db96f..588a653 100644 (file)
@@ -186,10 +186,11 @@ function ilib_gen_Make_win32(name, ..
 
     //update DEBUG_SCILAB_DYNAMIC_LINK to map with Scilab compilation mode
     val = getenv("DEBUG_SCILAB_DYNAMIC_LINK","");
-    if val <> "YES" & val <> "NO" & isDebug()then
+    if val <> "YES" & val <> "NO" & isDebug() then
         setenv("DEBUG_SCILAB_DYNAMIC_LINK","YES");
         CFLAGS = CFLAGS + " -D_DEBUG";
     else
+        setenv("DEBUG_SCILAB_DYNAMIC_LINK","");
         CFLAGS = CFLAGS + " -DNDEBUG";
     end
 
@@ -199,7 +200,7 @@ function ilib_gen_Make_win32(name, ..
     FILES_SRC = strcat(FILES_SRC_MATRIX," ");
 
     OBJ_DEST_PATH = "";
-    if (getenv("DEBUG_SCILAB_DYNAMIC_LINK","YES") == "YES") then
+    if (getenv("DEBUG_SCILAB_DYNAMIC_LINK","") == "YES") then
         OBJ_DEST_PATH = "Debug/";
     else
         OBJ_DEST_PATH = "Release/";