Fix CROSSCOMPILE being set for non-cross Mono builds (#18512)

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
This commit is contained in:
Jo Shields 2024-02-06 06:32:57 -05:00 committed by GitHub
parent 342409acc4
commit 411175156e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ parameters:
- name: container
type: string
- name: crossRootFS
- name: crossRootFs
type: string
default: ''
@ -264,11 +264,10 @@ jobs:
if [[ '${{ parameters.useMonoRuntime }}' == 'True' ]]; then
customBuildArgs="$customBuildArgs --use-mono-runtime"
customEnvVars="$customEnvVars CROSSCOMPILE=1"
fi
if [[ ! -z '${{ parameters.crossRootFs }}' ]]; then
customEnvVars="$customEnvVars ROOTFS_DIR=${{ parameters.crossRootFs}}"
if [[ -n "${{ parameters.crossRootFs }}" ]]; then
customEnvVars="$customEnvVars ROOTFS_DIR=${{ parameters.crossRootFs}} CROSSCOMPILE=1"
fi
if [[ ! -z '${{ parameters.targetOS }}' ]]; then