allows usage of objective-c in plugins

This commit is contained in:
Roberto De Ioris
2012-10-09 14:50:14 +02:00
parent 42229b08ce
commit adcbc061b1
+1 -1
View File
@@ -1074,7 +1074,7 @@ def build_plugin(path, uc, cflags, ldflags, libs, name = None):
for cfile in up.GCC_LIST:
if cfile.endswith('.a'):
gcc_list.append(cfile)
elif not cfile.endswith('.c') and not cfile.endswith('.cc'):
elif not cfile.endswith('.c') and not cfile.endswith('.cc') and not cfile.endswith('.m'):
gcc_list.append(path + '/' + cfile + '.c')
else:
gcc_list.append(path + '/' + cfile)