40 Star 68 Fork 22

方舟编译器孵化器 / mapleall

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
envsetup.sh 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
yi_jiang 提交于 2020-11-16 11:36 . Support RISC-V target
#
# 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/engine/riscv 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=aarch64
USEOJ=0
elif [ $1 = "engine" ]; then
PLATFORM=ark
USEOJ=1
elif [ $1 = "ark" ]; then
PLATFORM=ark
USEOJ=1
elif [ $1 = "ark2" ]; then
PLATFORM=ark
USEOJ=2
elif [ $1 = "riscv" ]; then
PLATFORM=riscv64
USEOJ=0
else
print_usage
return
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}
C++
1
https://gitee.com/openarkcompiler-incubator/mapleall.git
git@gitee.com:openarkcompiler-incubator/mapleall.git
openarkcompiler-incubator
mapleall
mapleall
dev

搜索帮助