Don't fail the build if c++ isn't found

The intention of this check was to skip the keyword
test if no c++ compiler is found. But the meson
docs say that add_languages() will abort unless we
pass required: false.
This commit is contained in:
Matthias Clasen
2018-08-17 21:45:11 +00:00
parent d13cd9cb67
commit 099b967885

View File

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