Mixing c and cpp sources in native builds

Hello all,

We have projects that have sources with both c and cpp extension. Changing them to confirm to one or the other is not an option. As currently implemented in Gradle 4.8, when building with cpp-library plugin and including both c and cpp among sources, all files with c extension are silently skipped - leading to errors during link. There is no obj file created nor the file is listed in the link command.

Any immediate/quick workaround to resolve the issue??