代码拉取完成,页面将自动刷新
同步操作将从 方舟编译器孵化器/mapleall 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#
# Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved.
#
# Licensed under the Mulan Permissive Software License v2.
# You can use this software according to the terms and conditions of the MulanPSL - 2.0.
# You may obtain a copy of MulanPSL - 2.0 at:
#
# https://opensource.org/licenses/MulanPSL-2.0
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
# FIT FOR A PARTICULAR PURPOSE.
# See the MulanPSL - 2.0 for more details.
#
function print_usage {
echo " "
echo "usage: source envsetup.sh arm/ark release/debug"
echo " "
}
if [ "$#" -lt 2 ]; then
print_usage
return
fi
curdir=$(pwd)
unset MAPLE_ROOT
export MAPLE_ROOT=${curdir}
unset TARGET_ARCH
export TARGET_ARCH=64
if [ $1 = "arm" ]; then
PLATFORM=arm64
USEOJ=0
else if [ $1 = "ark" ]; then
PLATFORM=ark
USEOJ=1
else
print_usage
return
fi
fi
if [ "$2" = "release" ]; then
TYPE=release
else if [ "$2" = "debug" ]; then
TYPE=debug
else
print_usage
return
fi
fi
unset TARGET_PROCESSOR
export TARGET_PROCESSOR=${PLATFORM}
unset TARGET_SCOPE
export TARGET_SCOPE=${TYPE}
unset USE_OJ_LIBCORE
export USE_OJ_LIBCORE=${USEOJ}
unset TARGET_TOOLCHAIN
export TARGET_TOOLCHAIN=clang
unset MAPLE_BUILD_TYPE
export MAPLE_BUILD_TYPE=${TARGET_PROCESSOR}-${TARGET_TOOLCHAIN}-${TARGET_SCOPE}
unset MAPLE_EXECUTE_BIN
export MAPLE_EXECUTE_BIN=${MAPLE_ROOT}/bin/${MAPLE_BUILD_TYPE}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。