From f6f1b10fc984d4035de162072a4a48146adc0045 Mon Sep 17 00:00:00 2001 From: Jiyoung Yun Date: Thu, 30 Mar 2017 14:24:17 +0900 Subject: [PATCH] Add --runtime-id option to support cross build When trying to cross build, Rid needs to change to the target Rid, but architecture should use x64 as it as host. In addition to the existing --architecture option, and additional --runtime-id option is required. --- run-build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run-build.sh b/run-build.sh index 17c515902..1b36963e1 100755 --- a/run-build.sh +++ b/run-build.sh @@ -90,6 +90,12 @@ while [[ $# > 0 ]]; do args=( "${args[@]/$2}" ) shift ;; + --runtime-id) + CUSTOM_BUILD_ARGS="/p:Rid=\"$2\"" + args=( "${args[@]/$1}" ) + args=( "${args[@]/$2}" ) + shift + ;; # This is here just to eat away this parameter because CI still passes this in. --targets) args=( "${args[@]/$1}" )