public: wscript: explicitly set language for libc tests in multicheck, as Waf chooses C++ by default

Compiling tgmath.h test with C++ compiler causes misdetection on PSVita which has broken tgmath.h support.
This commit is contained in:
Alibek Omarov
2025-07-29 20:41:57 +05:00
parent dc09cf0c39
commit 4398de1dab

View File

@@ -118,7 +118,7 @@ def configure(conf):
def check_libc_extension(frag, msg, define):
exports_list.append(define)
return {'fragment': frag, 'msg': 'Checking for ' + msg, 'define_name': define, 'mandatory': False, 'use': 'M werror export'}
return {'fragment': frag, 'msg': 'Checking for ' + msg, 'define_name': define, 'mandatory': False, 'use': 'M werror export', 'features': 'cprogram'}
conf.multicheck(
check_libc_extension(TGMATH_H_TEST, 'tgmath.h', 'HAVE_TGMATH_H'),