Fix CROSSCOMPILE being set for non-cross Mono builds (#18512)
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
This commit is contained in:
parent
342409acc4
commit
411175156e
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue