1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-09 09:57:26 +03:00

test: add header build tests for newer C and C++ standards

(cherry picked from commit a6d46fe64b61c62dc5c0dadbad65134075b29303)
This commit is contained in:
Yu Watanabe 2023-03-06 10:21:47 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 25b5c24e59
commit efbe08c27c

View File

@ -59,6 +59,10 @@ if cc.has_argument('-std=iso9899:2017')
opts += [['c', '-std=iso9899:2017']]
endif
if cc.has_argument('-std=c2x')
opts += [['c', '-std=c2x']]
endif
if cxx_cmd != ''
opts += [['c++'],
['c++', '-std=c++98'],
@ -72,6 +76,9 @@ if cxx_cmd != ''
if cxx.has_argument('-std=c++20')
opts += [['c++', '-std=c++20']]
endif
if cxx.has_argument('-std=c++23')
opts += [['c++', '-std=c++23']]
endif
endif
foreach header : _systemd_headers + _not_installed_headers + [libudev_h_path]