C/C++ cross compilation with arm-none-eabi-gcc

See this post for how you can set the executable for each platform: Having gradle compile with g++ and not gcc. You can use tools.platform to access the individual platform and make a choice about what executable to use.