Build Error on Mbed Studio 1.4.4 + Mbed-OS 6.51.1

Hello,

I have been trying to upgrade my project (https://github.com/faydr/QMesh) from Mbed OS 5.15 to 6.15. When I attempt to build it in Mbed Studio, however, I get the following error:

Link: QMesh
arm-none-eabi-cpp: fatal error: '-c' is not a valid option to the preprocessor
compilation terminated.
[ERROR] arm-none-eabi-cpp: fatal error: '-c' is not a valid option to the preprocessor

Any idea what could be causing this?

Thanks!

-Dan Fay