mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
meson: fix build without cpp toolchain
We don't need a cpp toolchain for building glib so lets just automatically disable tests requiring one when not available. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
This commit is contained in:
@@ -38,9 +38,6 @@ gobject_tests = {
|
||||
},
|
||||
'basics-gobject' : {},
|
||||
'boxed' : {},
|
||||
'cxx' : {
|
||||
'source' : ['cxx.cpp'],
|
||||
},
|
||||
'defaultiface' : {
|
||||
'source' : ['defaultiface.c', 'testmodule.c'],
|
||||
},
|
||||
@@ -101,6 +98,14 @@ gobject_tests = {
|
||||
},
|
||||
}
|
||||
|
||||
if have_cxx
|
||||
gobject_tests += {
|
||||
'cxx' : {
|
||||
'source' : ['cxx.cpp'],
|
||||
},
|
||||
}
|
||||
endif
|
||||
|
||||
if cc.get_id() != 'msvc'
|
||||
gobject_tests += {'autoptr' : {}}
|
||||
endif
|
||||
|
Reference in New Issue
Block a user