diff --git a/src/compiler/compiler.c b/src/compiler/compiler.c index 6b7ef42c6..2cc24e6d4 100644 --- a/src/compiler/compiler.c +++ b/src/compiler/compiler.c @@ -842,8 +842,8 @@ INLINE void expand_csources(const char *base_dir, const char **source_dirs, cons { if (source_dirs) { - static const char* c_suffix_list[3] = { ".c" }; - *sources_ref = target_expand_source_names(base_dir, source_dirs, c_suffix_list, NULL, 1, false); + static const char* c_suffix_list[3] = { ".c", ".m" }; + *sources_ref = target_expand_source_names(base_dir, source_dirs, c_suffix_list, NULL, 2, false); } }