summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor "Nate" Graf <nategraf1@gmail.com>2017-08-11 15:10:29 -0700
committerDan Moseley <danmose@microsoft.com>2017-08-11 15:10:29 -0700
commit7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6 (patch)
tree9eff65ba0d6ccab4faf5465416ec6791b33d3c6e
parent6bd6faa54499db929dba13110a23f80dbee07174 (diff)
downloadcoreclr-7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6.tar.gz
coreclr-7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6.tar.bz2
coreclr-7ef5ec77df1f0cfd8133c00b97c1b5c416d9a5e6.zip
Fix bug where whitespace breaks arg proccessing (#13320)
* Fix bug where whitespace breaks arg proccessing * Fix whitespace proccessing bug in buil-text.cmd
-rw-r--r--build-test.cmd7
-rw-r--r--build.cmd7
2 files changed, 10 insertions, 4 deletions
diff --git a/build-test.cmd b/build-test.cmd
index bf17827fe7..df7df4452f 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
diff --git a/build.cmd b/build.cmd
index d48042a05f..aa24f39844 100644
--- a/build.cmd
+++ b/build.cmd
@@ -155,9 +155,12 @@ if /i "%1" == "buildstandalonegc" (
if /i "%1" == "altjitcrossgen" (set processedArgs=!processedArgs! %1&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