summaryrefslogtreecommitdiff
path: root/build-test.cmd
diff options
context:
space:
mode:
authorVictor "Nate" Graf <nategraf1@gmail.com>2017-08-11 22:10:29 (GMT)
committerDan Moseley <danmose@microsoft.com>2017-08-11 22:10:29 (GMT)
commit7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6 (patch)
tree9eff65ba0d6ccab4faf5465416ec6791b33d3c6e /build-test.cmd
parent6bd6faa54499db929dba13110a23f80dbee07174 (diff)
downloadcoreclr-7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6.zip
coreclr-7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6.tar.gz
coreclr-7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6.tar.bz2
Fix bug where whitespace breaks arg proccessing (#13320)
* Fix bug where whitespace breaks arg proccessing * Fix whitespace proccessing bug in buil-text.cmd
Diffstat (limited to 'build-test.cmd')
-rw-r--r--build-test.cmd7
1 files changed, 5 insertions, 2 deletions
diff --git a/build-test.cmd b/build-test.cmd
index bf17827..df7df44 100644
--- a/build-test.cmd
+++ b/build-test.cmd
@@ -86,9 +86,12 @@ if /i "%1" == "targetsNonWindows" (set __TargetsWindows=0&set processedArgs=
if /i "%1" == "Exclude" (set __Exclude=%2&set processedArgs=!processedArgs! %1 %2&shift&shift&goto Arg_Loop)
if [!processedArgs!]==[] (
- call set __UnprocessedBuildArgs=!__args!
+ set __UnprocessedBuildArgs=%__args%
) else (
- call set __UnprocessedBuildArgs=%%__args:*!processedArgs!=%%
+ set __UnprocessedBuildArgs=%__args%
+ for %%t in (!processedArgs!) do (
+ set __UnprocessedBuildArgs=!__UnprocessedBuildArgs:*%%t=!
+ )
)
:ArgsDone