From 01d7304e4524f51ac5c48621444f0fec59667dd5 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Mon, 1 Aug 2016 15:10:19 -0400 Subject: [PATCH] ide/project: Treating both 'emcc' and 'clang' as 'gcc' type compilers which should use -isystem for global include paths - This addresses wrong headers being used building with Emscripten, e.g. errno.h building libtiff --- ide/src/project/Project.ec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ide/src/project/Project.ec b/ide/src/project/Project.ec index 9953d65..c1bf7e2 100644 --- a/ide/src/project/Project.ec +++ b/ide/src/project/Project.ec @@ -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; -- 1.8.3.1