Set TARGET_CXX to 'no' if c++ is not enabled in the toolchain.