PlatformIO to the rescue! Cross platform code builder and library manager with support for platforms like Arduino or MBED. It takes care of toolchains, debuggers, frameworks to work on...