build: Add missing argument to add_languages()

We need to specify whether we want a native compiler or not.
This commit is contained in:
Emmanuele Bassi 2022-12-06 20:47:55 +00:00
parent ca1dfc7092
commit 2b095b501f

View File

@ -112,7 +112,7 @@ foreach t : tests
endforeach
# FIXME: if objc autotestkeywords_CPPFLAGS += -DHAVE_OBJC=1 -x objective-c++
if add_languages('cpp', required: false)
if add_languages('cpp', required: false, native: false)
test_exe = executable('autotestkeywords',
'autotestkeywords.cc',
c_args : test_cargs + ['-Idummy-headers'],