From 18723217fcd2fd6d0b0beb71ce54bb08879ad105 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Wed, 11 Jun 2025 09:52:42 -0300 Subject: [PATCH] cargo_wrapper: Fix backslashes being parsed as escape codes on Windows Fixes #696 Part-of: --- cargo_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cargo_wrapper.py b/cargo_wrapper.py index c169045cc..843f0bee1 100644 --- a/cargo_wrapper.py +++ b/cargo_wrapper.py @@ -94,7 +94,7 @@ if __name__ == "__main__": rustc_target = None if 'RUSTC' in env: - rustc_cmdline = shlex.split(env['RUSTC']) + rustc_cmdline = shlex.split(env['RUSTC'], posix=sys.platform != 'win32') # grab target from RUSTFLAGS rust_flags = rustc_cmdline[1:] + shlex.split(env.get('RUSTFLAGS', '')) if '--target' in rust_flags: