diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2015-12-23 02:41:44 +0300 |
---|---|---|
committer | Gaurav Khanna <gkhanna@microsoft.com> | 2015-12-30 04:00:23 +0300 |
commit | 650f99d78c2bc0c89a81e30d9c758f184514ba98 (patch) | |
tree | 5ac6b2d5511ed911554f4bff8b1f97677c0de37e /build.sh | |
parent | 84b4f44572da69e07325e2b09988c1727cefdbff (diff) |
Exports required for refactored ILCompiler.SDK consumption.
Fix consumption of custom CLI path
Add support for consuming --cppcompilerflags
Consume correct Ubuntu CLI download post CentOS introduction
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -79,18 +79,18 @@ install_dotnet_cli() echo "Installing the dotnet/cli..." local __tools_dir=${__scriptpath}/bin/tools local __cli_dir=${__tools_dir}/cli - if [ ! -z "${__dotnetclipath}" ]; then - __cli_dir = ${__dotnetclipath} - else - __dotnetclipath=${__cli_dir} - fi - if [ ! -d "${__cli_dir}" ]; then mkdir -p "${__cli_dir}" fi if [ ! -f "${__cli_dir}/bin/dotnet" ]; then local __build_os_lowercase=$(echo "${__BuildOS}" | tr '[:upper:]' '[:lower:]') + + # For Linux, we currently only support Ubuntu. + if [ "${__build_os_lowercase}" == "linux" ]; then + __build_os_lowercase="ubuntu" + fi + local __build_arch_lowercase=$(echo "${__BuildArch}" | tr '[:upper:]' '[:lower:]') local __cli_tarball=dotnet-${__build_os_lowercase}-${__build_arch_lowercase}.latest.tar.gz local __cli_tarball_path=${__tools_dir}/${__cli_tarball} @@ -108,6 +108,14 @@ install_dotnet_cli() export HOME=${__tools_dir} fi fi + + if [ ! -z "${__dotnetclipath}" ]; then + __cli_dir=${__dotnetclipath} + export DOTNET_HOME=${__cli_dir} + else + __dotnetclipath=${__cli_dir} + fi + if [ ! -f "${__cli_dir}/bin/dotnet" ]; then echo "CLI could not be installed or not present." exit 1 @@ -234,7 +242,7 @@ __ToolNugetRuntimeId=ubuntu.14.04-x64 __TestNugetRuntimeId=ubuntu.14.04-x64 __buildmanaged=true __buildnative=true -__dotnetclipath="" +__dotnetclipath= # Workaround to enable nuget package restoration work successully on Mono export TZ=UTC |