From d080481d8d2c358c553eddcb10786131b59bc9b6 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 7 Oct 2023 16:38:56 +0800 Subject: ... --- lib/meson-projects/meson.build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib') diff --git a/lib/meson-projects/meson.build b/lib/meson-projects/meson.build index c373f0ce..0434dfb0 100644 --- a/lib/meson-projects/meson.build +++ b/lib/meson-projects/meson.build @@ -1,5 +1,21 @@ project('cru-deps', 'c', 'cpp') +hello_word_test = ''' +#include + +int main() { + printf("Hello world!"); + return 0; +} +''' + +cc = meson.get_compiler('c') +hello_world_result = cc.run(hello_word_test, name: 'hello world') + +if hello_world_result.returncode() != 0 + error('Failed to hello world!') +endif + if get_option('cairo').enabled() subproject('glib') subproject('cairo') -- cgit v1.2.3