aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-25 17:12:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-25 17:12:45 +0000
commit88b2808dcd3a01ced02079bf381f204e10b7946b (patch)
tree423328770236d02b5c935dee731fa7c70d693306 /meson.build
parentMerge branch 'terminfo' (diff)
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 778568e7..52ce2dc5 100644
--- a/meson.build
+++ b/meson.build
@@ -130,12 +130,13 @@ foreach prot : wl_proto_xml
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@'])
common = static_library(
'common',