Skip to content

Commit 5bf2e28

Browse files
rusty-snaketopimiettinen
authored andcommitted
21
1 parent c64f003 commit 5bf2e28

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

meson.build

+11
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ install_data('COPYING', 'README', 'RELNOTES',
120120

121121
# # # # # # # # # #
122122

123+
cppcheck = find_program('cppcheck', required: false)
124+
if cppcheck.found()
125+
run_target('cppcheck',
126+
command: [
127+
cppcheck, '--force', '--error-exitcode=1', '--enable=warning,performance', meson.source_root(),
128+
],
129+
)
130+
endif
131+
132+
# # # # # # # # # #
133+
123134
show_summary = true
124135
if show_summary and meson.version().version_compare('>=0.53.0')
125136
summary('prefix', prefix, section: 'Directories')

meson_options.txt

-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ option('contrib', type: 'boolean', value: true,
4343
description: 'Install contrib files')
4444
option('manpage', type: 'boolean', value: true,
4545
description: 'Manpages')
46-

src/man/meson.build

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# The kwarg env: of run_command is only supported by meson>=0.50
2-
date = run_command(sh, '-c', 'LC_ALL=C date -u +%Y-%b',
2+
date = run_command(sh, '-c',
3+
'LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%b',
34
check: true,
45
).stdout().strip().split('-')
56

0 commit comments

Comments
 (0)