Vala: Add missing FeatureNew() when C is missing

It was previously an hard error, only permitted since 0.59.0.
This commit is contained in:
Xavier Claessens 2021-05-28 09:18:40 -04:00 committed by Xavier Claessens
parent a5b43aa16c
commit a9959a3859
1 changed files with 1 additions and 0 deletions

View File

@ -1192,6 +1192,7 @@ external dependencies (including libraries) must go to "dependencies".''')
langs = set(self.coredata.compilers[for_machine].keys())
langs.update(args)
if 'vala' in langs and 'c' not in langs:
FeatureNew('Adding Vala language without C', '0.59.0').use(self.subproject)
args.append('c')
success = True