summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-05-17 17:02:55 +0200
committerGitHub <noreply@github.com>2017-05-17 17:02:55 +0200
commitf731ad4456def2badc840dd52e69f2ba243c5155 (patch)
tree29d8cabfc15099ed79ddef4b08fa6072166c924e /src/systemd
parentc20e6de897b2378bc3f936e1e265d2d2e2450a73 (diff)
parent0f771be9caddd7b212e0df5f6186dd687f1b8da5 (diff)
downloadsystemd-f731ad4456def2badc840dd52e69f2ba243c5155.tar.gz
Merge pull request #5957 from keszybz/test-c++
Test compilation under C++
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/meson.build11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/systemd/meson.build b/src/systemd/meson.build
index 43fd0130b9..75435acb14 100644
--- a/src/systemd/meson.build
+++ b/src/systemd/meson.build
@@ -38,16 +38,17 @@ install_headers(
############################################################
-opts = [[],
- ['-ansi'],
- ['-std=iso9899:1990']]
+opts = [['c'],
+ ['c', '-ansi'],
+ ['c', '-std=iso9899:1990'],
+ ['c++']]
foreach header : _systemd_headers
foreach opt : opts
- name = ''.join([header] + opt)
+ name = ''.join([header, ':'] + opt)
test('cc-' + name,
check_compilation_sh,
- args : cc.cmd_array() + ['-x', 'c', '-c'] + opt +
+ args : cc.cmd_array() + ['-c', '-x'] + opt +
['-Werror', '-include',
join_paths(meson.current_source_dir(), header)])
endforeach