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:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user