aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-25 19:11:29 +0200
committerDaniel Eklöf <daniel@ekloef.se>2021-08-25 19:11:29 +0200
commitcd6b39257050df2ed1def9d868547fe9742c16d5 (patch)
tree7b5aa65754c2830b872cd955e9bfecccd3939161 /meson.build
parent6671844d7892ed57a34ee55d7e7f0824e35fcd8c (diff)
downloadwbg-cd6b39257050df2ed1def9d868547fe9742c16d5.tar.gz
meson: run generate_version.sh in a C locale
Previously, only the date command inside the script was run with LC_TIME=C. But there’s no reason to be that conservative; we absolutely do not want _anything_ in that script to generate locale dependent output.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 08217b7..e46e645 100644
--- a/meson.build
+++ b/meson.build
@@ -91,12 +91,13 @@ foreach prot : [
command: [wscanner_prog, 'private-code', '@INPUT@', '@OUTPUT@'])
endforeach
+env = find_program('env', native: true)
generate_version_sh = files('generate-version.sh')
version = custom_target(
'generate_version',
build_always_stale: true,
output: 'version.h',
- command: [generate_version_sh, meson.project_version(), '@SOURCE_ROOT@', '@OUTPUT@'])
+ command: [env, 'LC_ALL=C', generate_version_sh, meson.project_version(), '@SOURCE_ROOT@', '@OUTPUT@'])
image_format_sources = []
if png.found()