summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Khanna <gkhanna@microsoft.com>2017-03-22 21:35:24 -0700
committerGitHub <noreply@github.com>2017-03-22 21:35:24 -0700
commit14792ccacd1209380ba642431fe22f703b9f4060 (patch)
tree3e146bc4f1a242d7dc17691d8cd2f6a3d3790620
parent741ce0d615bdae442cb3ee184a5a36b30d1a152a (diff)
downloadcoreclr-14792ccacd1209380ba642431fe22f703b9f4060.tar.gz
coreclr-14792ccacd1209380ba642431fe22f703b9f4060.tar.bz2
coreclr-14792ccacd1209380ba642431fe22f703b9f4060.zip
Unify command line arg for portable RID build (#10408)
-rw-r--r--build.cmd2
-rwxr-xr-xbuild.sh2
-rw-r--r--config.json6
3 files changed, 8 insertions, 2 deletions
diff --git a/build.cmd b/build.cmd
index 13c3fb4a66..859eac7b1c 100644
--- a/build.cmd
+++ b/build.cmd
@@ -118,7 +118,7 @@ if /i "%1" == "debug" (set __BuildTypeDebug=1&set processedArgs=!p
if /i "%1" == "checked" (set __BuildTypeChecked=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "release" (set __BuildTypeRelease=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
-if /i "%1" == "portable" (set __IsPortableBuild=-portable&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
+if /i "%1" == "-portable" (set __IsPortableBuild=-portable&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
REM All arguments after this point will be passed through directly to build.cmd on nested invocations
REM using the "all" argument, and must be added to the __PassThroughArgs variable.
diff --git a/build.sh b/build.sh
index 7c5f55bf5c..e97fbb00a5 100755
--- a/build.sh
+++ b/build.sh
@@ -634,7 +634,7 @@ while :; do
__CrossBuild=1
;;
- portable)
+ -portable)
__PortableBuild=1
;;
diff --git a/config.json b/config.json
index f0780ed111..9d98a2ee20 100644
--- a/config.json
+++ b/config.json
@@ -621,6 +621,12 @@
"__BuildArch": "default"
}
},
+ "portable": {
+ "description": "Triggers a portable build.",
+ "settings": {
+ "PortableBuild": "1"
+ }
+ },
"buildType": {
"description": "Specifies configuration to publish, can be Release, Debug or Checked.",
"settings": {