ide: fix emscripten compiler (emcc) detection.
authorRejean Loyer <redj@ecere.com>
Sat, 3 Jan 2015 01:08:30 +0000 (20:08 -0500)
committerRejean Loyer <redj@ecere.com>
Mon, 16 Mar 2015 05:32:00 +0000 (01:32 -0400)
ide/src/project/Project.ec

index bc2c2e6..83de568 100644 (file)
@@ -3407,9 +3407,9 @@ private:
          f.Puts("ifndef STATIC_LIBRARY_TARGET\n");
 
          f.Printf("\t$(%s) $(OFLAGS) @$(OBJ)objects.lst $(LIBS)%s -o $(TARGET) $(INSTALLNAME)\n",
-               ldCommand && ldCommand[0] ? "LD" : containsCXX ? "CXX" : "CC",
-               //strcmp(compiler.name, "em") == 0 ? " --preload-file __HelloForm.ear" : "");
-               strcmp(compiler.name, "em") == 0 ? " --embed-file __HelloForm.ear" : "");
+                  ldCommand && ldCommand[0] ? "LD" : containsCXX ? "CXX" : "CC",
+                  strstr(compiler.ccCommand, "emcc") == null ? "" : /*" --preload-file "*/" --embed-file " "__HelloForm.ear"
+               );
          if(!GetDebug(config))
          {
             f.Puts("ifndef NOSTRIP\n");