Fix invalid detecting of compiler type // Resolve #550

This commit is contained in:
Ivan Kravets
2016-03-02 00:25:36 +02:00
parent c9505b3acc
commit 8388359b36
2 changed files with 6 additions and 3 deletions

View File

@ -27,6 +27,8 @@ PlatformIO 2.0
* Fixed issue with Project Generator when optional build flags were passed using
system environment variables: `PLATFORMIO_BUILD_FLAGS <http://docs.platformio.org/en/latest/envvars.html#platformio-build-flags>`__
or `PLATFORMIO_BUILD_SRC_FLAGS <http://docs.platformio.org/en/latest/envvars.html#platformio-build-src-flags>`__
* Fixed invalid detecting of compiler type
(`issue #550 <https://github.com/platformio/platformio/issues/550>`_)
2.8.4 (2016-02-17)

View File

@ -256,9 +256,10 @@ def GetCompilerType(env):
if result['returncode'] != 0:
return None
output = "".join([result['out'], result['err']]).lower()
for type_ in ("clang", "gcc"):
if type_ in output:
return type_
if "clang" in output and "LLVM" in output:
return "clang"
elif "gcc" in output:
return "gcc"
return None