From: Omair Majid Date: Fri, 10 Aug 2018 13:55:04 +0000 (-0400) Subject: Handle --configuration in src/corehost/build.sh correctly (dotnet/core-setup#4389) X-Git-Tag: submit/tizen/20210909.063632~11032^2~596 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aba804f02b146de19d46ca5814501b4fb1deb378;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Handle --configuration in src/corehost/build.sh correctly (dotnet/core-setup#4389) Currently, the value of the configuration is ignored. Commit migrated from https://github.com/dotnet/core-setup/commit/086fb54ddbe3b1f723258d56e7dcb69f893c25d9 --- diff --git a/src/installer/corehost/build.sh b/src/installer/corehost/build.sh index 83a71dd..ff0461f 100755 --- a/src/installer/corehost/build.sh +++ b/src/installer/corehost/build.sh @@ -58,9 +58,10 @@ init_rid_plat() usage() { - echo "Usage: $0 --arch --hostver --apphostver --fxrver --policyver --commithash [--xcompiler ]" + echo "Usage: $0 --configuration --arch --hostver --apphostver --fxrver --policyver --commithash [--xcompiler ]" echo "" echo "Options:" + echo " --configuration Build configuration (Debug, Release)" echo " --arch Target Architecture (x64, x86, arm, arm64, armel)" echo " --hostver Version of the dotnet executable" echo " --apphostver Version of the apphost executable" @@ -96,7 +97,7 @@ __commit_hash= __portableBuildArgs= __configuration=Debug __linkPortable=0 -__cmake_defines="-DCMAKE_BUILD_TYPE=${__configuration} ${__portableBuildArgs}" +__cmake_defines= __baseIntermediateOutputPath="$RootRepo/Bin/obj" __versionSourceFile="$__baseIntermediateOutputPath/version.cpp" @@ -151,6 +152,8 @@ while [ "$1" != "" ]; do shift done +__cmake_defines="${__cmake_defines} -DCMAKE_BUILD_TYPE=${__configuration} ${__portableBuildArgs}" + mkdir -p "$__baseIntermediateOutputPath" case $__build_arch in