mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fix invalid detecting of compiler type // Resolve #550
This commit is contained in:
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user