diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-25 17:07:42 +0200 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2025-10-17 12:48:29 -0400 |
| commit | 58b5d1b09583eb83f0a934e05cbd4686ede7165c (patch) | |
| tree | 3b7dc60c583ab8722541fc1eb7dd8aa869e6b910 /mesonbuild/cargo/interpreter.py | |
| parent | 79060420be83e04ef450403156dbb2d52d749769 (diff) | |
| download | meson-58b5d1b09583eb83f0a934e05cbd4686ede7165c.tar.gz | |
cargo: do not process escapes in strings passed to the builder
With workspace support, backslashes can appear in subdir() invocations
generated by the Cargo interpreter.
If the arguments form valid escapes, for example subdir('dir\foo'),
the interpreter will parse the '\f' as a single form feed character,
and produce errors such as
os.makedirs(os.path.join(self.environment.build_dir, subdir), exist_ok=True)
File "C:\hostedtoolcache\windows\Python\3.7.9\x64\lib\os.py", line 223, in makedirs
mkdir(name, mode)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\a\\1\\s\\b c09188aed5\\subprojects\\foo\\dir\x0coo'
Use escape=False just like the cmake interpreter does.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/cargo/interpreter.py')
0 files changed, 0 insertions, 0 deletions
