ide/Project: Fixed compiling info for Windows resource with platform flag
authorJerome St-Louis <jerome@ecere.com>
Fri, 9 Aug 2013 06:12:24 +0000 (02:12 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 9 Aug 2013 06:12:24 +0000 (02:12 -0400)
ide/src/project/Project.ec

index e93ba87..170b90f 100644 (file)
@@ -1697,6 +1697,14 @@ private:
                   if(module)
                   {
                      byte * tokens[1];
+                     char * dashF = strstr(module, "-F ");
+                     if(dashF)
+                     {
+                        dashF+= 3;
+                        while(*dashF && *dashF != ' ') dashF++;
+                        while(*dashF && *dashF == ' ') dashF++;
+                        module = dashF;
+                     }
                      Tokenize(module, 1, tokens, (BackSlashEscaping)true); // fix #139
                      GetLastDirectory(module, moduleName);
                      ide.outputView.buildBox.Logf("%s\n", moduleName);