Fix unescaped backslash in path to gperf

This commit is contained in:
addowhite 2022-11-11 02:23:36 +00:00
parent 5826d9a058
commit 6894e4583a
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/meson.build b/meson.build
index 0ef22d3..9e6f958 100644
--- a/meson.build
+++ b/meson.build
@@ -342,7 +342,7 @@ else
@1@
'''
gperf_snippet_format = 'echo foo,bar | @0@ -L ANSI-C'
- gperf_snippet = run_command(sh, '-c', gperf_snippet_format.format(gperf.full_path()),
+ gperf_snippet = run_command(sh, '-c', gperf_snippet_format.format(gperf.full_path().replace('\\', '/')),
check: true)
gperf_test = gperf_test_format.format('size_t', gperf_snippet.stdout())

View File

@ -12,6 +12,7 @@ vcpkg_from_gitlab(
libgetopt.patch libgetopt.patch
fix-mingw-gperf-fallback.patch fix-mingw-gperf-fallback.patch
fix-preprocessor-clang-cl.patch fix-preprocessor-clang-cl.patch
fix-gperf-path-windows.patch
) )
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf") vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")