ide/project: Treating both 'emcc' and 'clang' as 'gcc' type compilers which should...
authorJerome St-Louis <jerome@ecere.com>
Mon, 1 Aug 2016 19:10:19 +0000 (15:10 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 1 Aug 2016 22:05:27 +0000 (18:05 -0400)
- This addresses wrong headers being used building with Emscripten, e.g. errno.h building libtiff

ide/src/project/Project.ec

index 9953d65..c1bf7e2 100644 (file)
@@ -2476,7 +2476,8 @@ private:
       char path[MAX_LOCATION];
       char * name;
       char * compilerName;
-      bool gccCompiler = compiler.ccCommand && (strstr(compiler.ccCommand, "gcc") != null || strstr(compiler.ccCommand, "g++") != null);
+      const char * ccCommand = compiler.ccCommand;
+      bool gccCompiler = compiler.ccCommand && (strstr(ccCommand, "gcc") != null || strstr(ccCommand, "g++") != null || strstr(ccCommand, "emcc") != null || strstr(ccCommand, "clang") != null);
       const char * gnuToolchainPrefix = compiler.gnuToolchainPrefix ? compiler.gnuToolchainPrefix : "";
       Platform platform = compiler.targetPlatform;