同步操作将从 方舟编译器/OpenArkCompiler 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
2 GHz dual-core processor or higher
2 GB system memory or higher
200 GB available disk space
Install a 64-bit Ubuntu (Ubuntu 16.04, 18.04 or 20.04 is required).
sudo apt-get -y install clang llvm lld libelf-dev libssl-dev python qemu openjdk-8-jre-headless openjdk-8-jdk-headless
sudo apt-get -y install git build-essential zlib1g-dev libc6-dev-i386 g++-multilib gcc-multilib linux-libc-dev:i386
Ubuntu 16.04:
sudo apt-get -y install gcc-5-aarch64-linux-gnu g++-5-aarch64-linux-gnu
Ubuntu 18.04:
sudo apt-get -y install gcc-7-aarch64-linux-gnu g++-7-aarch64-linux-gnu
Ubuntu 20.04:
sudo apt-get -y install gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu
source build/envsetup.sh arm release
make setup
Note: the following steps are for reference only. All required tools are installed during above "make setup"
Download clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04 LLVM download address: http://releases.llvm.org/download.html#8.0.0
Place the downloaded files in the openarkcompiler/tools
directory, open the openarkcompiler/build/config.gni
file, and set the three variables GN_C_COMPILER
, GN_CXX_COMPILER
, and GN_AR_COMPILER
to the path where Clang is located. For example:
GN_C_COMPILER = "${MAPLE_ROOT}/tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang"
GN_CXX_COMPILER = "${MAPLE_ROOT}/tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang++"
GN_AR_COMPILER = "${MAPLE_ROOT}/tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/llvm-ar"
${MAPLE_ROOT} is the root directory of the OpenArkCompiler source code.
Download Ninja(v1.10.0) and GN(Linux Version) Ninja download address: https://github.com/ninja-build/ninja/releases GN download address: https://gitee.com/xlnb/gn_binary
Place the executable programs of GN and Ninja in the openarkcompiler/tools directory, modify these two files to be executable.
cd openarkcompiler/tools
chmod 775 gn
chmod 775 ninja
Open the openarkcompiler/Makefile file, and set the two variables GN and NINJA to the path where the executable programs of GN and Ninja are located. For example,
GN := ${MAPLE_ROOT}/tools/gn/gn
NINJA := ${MAPLE_ROOT}/tools/ninja/ninja
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。