You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
36
external/corert/buildscripts/build-native.sh
vendored
36
external/corert/buildscripts/build-native.sh
vendored
@@ -76,9 +76,45 @@ build_native_corert()
|
||||
popd
|
||||
}
|
||||
|
||||
initHostDistroRid()
|
||||
{
|
||||
if [ "$__HostOS" == "Linux" ]; then
|
||||
if [ ! -e /etc/os-release ]; then
|
||||
echo "WARNING: Can not determine runtime id for current distro."
|
||||
__HostDistroRid=""
|
||||
else
|
||||
source /etc/os-release
|
||||
__HostDistroRid="$ID.$VERSION_ID-$__HostArch"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
initTargetDistroRid()
|
||||
{
|
||||
if [ $__CrossBuild == 1 ]; then
|
||||
if [ "$__BuildOS" == "Linux" ]; then
|
||||
if [ ! -e $ROOTFS_DIR/etc/os-release ]; then
|
||||
echo "WARNING: Can not determine runtime id for current distro."
|
||||
export __DistroRid=""
|
||||
else
|
||||
source $ROOTFS_DIR/etc/os-release
|
||||
export __DistroRid="$ID.$VERSION_ID-$__BuildArch"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
export __DistroRid="$__HostDistroRid"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
if $__buildnative; then
|
||||
|
||||
# init the host distro name
|
||||
initHostDistroRid
|
||||
|
||||
# init the target distro name
|
||||
initTargetDistroRid
|
||||
|
||||
# Check prereqs.
|
||||
|
||||
check_native_prereqs
|
||||
|
||||
Reference in New Issue
Block a user