Handle .C extension in Xcode.

pull/9150/head
Jussi Pakkanen 3 years ago
parent e0ab7290f0
commit 12e7b3afcf
  1. 5
      mesonbuild/backend/xcodebackend.py

@ -326,7 +326,10 @@ class XCodeBackend(backends.Backend):
self.generate_regen_info()
def get_xcodetype(self, fname):
xcodetype = XCODETYPEMAP.get(fname.split('.')[-1].lower())
extension = fname.split('.')[-1]
if extension == 'C':
extension = 'cpp'
xcodetype = XCODETYPEMAP.get(extension.lower())
if not xcodetype:
xcodetype = 'sourcecode.unknown'
return xcodetype

Loading…
Cancel
Save