Skip to content

Commit a95d281

Browse files
committed
debug
1 parent 95cc7f3 commit a95d281

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Diff for: util/process_wrapper/process_wrapper.bat

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@ECHO OFF
1+
@REM @ECHO OFF
22
SETLOCAL enabledelayedexpansion
33

44
:: The first argument is expected to be `--`, this must be skipped
@@ -15,18 +15,17 @@ for %%A in (%*) do (
1515
:: Ensure the rustc.exe path is executable by sanitizing any `/` to `\`
1616
SET "arg=%%~A"
1717
SET "arg=!arg:/=\!"
18+
SET "arg=!arg:=^=!"
1819
SET "command_args=!command_args! !arg!"
1920
) else (
2021
:: Account for any arguments which contain `${pwd}` (a place holder for the current working directiron)
21-
set "arg=%%~A"
22-
set "arg=!arg:${pwd}=%CD%!"
23-
set "command_args=!command_args! !arg!"
22+
SET "arg=%%~A"
23+
SET "arg=!arg:${pwd}=%CD%!"
24+
SET "arg=!arg:=^=!"
25+
SET "command_args=!command_args! !arg!"
2426
)
2527
SET /a "arg_count+=1"
2628
)
2729

28-
:: append "--remap-path-prefix" with the current working directory
29-
SET "command_args=!command_args! "--remap-path-prefix=%CD%="
30-
3130
:: Execute the provided command with arguments
3231
%command_args%

Diff for: util/process_wrapper/process_wrapper.sh

-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ for arg in "$@"; do
1515
args+=("${arg}")
1616
done
1717

18-
set -x
19-
2018
exec "${args[@]}"

0 commit comments

Comments
 (0)