aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/headers/meson.build2
-rw-r--r--test/meson.build6
2 files changed, 5 insertions, 3 deletions
diff --git a/test/headers/meson.build b/test/headers/meson.build
index c0adabd..a6c279e 100644
--- a/test/headers/meson.build
+++ b/test/headers/meson.build
@@ -11,7 +11,7 @@ if get_option('warning_level') == 'everything'
endif
endif
-header_c_suppressions = cpp.get_supported_arguments(header_c_suppressions)
+header_c_suppressions = cc.get_supported_arguments(header_c_suppressions)
test_headers_c_args = header_c_suppressions
test_headers_c_args += [
diff --git a/test/meson.build b/test/meson.build
index f015596..6bd0aa3 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,4 +1,4 @@
-# Copyright 2021-2023 David Robillard <d@drobilla.net>
+# Copyright 2021-2025 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
# Suppress some additional C warnings in tests
@@ -148,4 +148,6 @@ subdir('headers')
# C++ / Objective C++ #
#######################
-subdir('cpp')
+if is_variable('cpp')
+ subdir('cpp')
+endif