From 8e323d299935a8806b1a6fdb6c0258edcf6e4b69 Mon Sep 17 00:00:00 2001 From: shining Date: Sun, 1 Mar 2020 20:23:55 +0800 Subject: [PATCH] Update the Developer_Guide to add the doc of build.sh The build system already have the build script which is named build/build.sh. Add the doc of the build.sh into the Developer_Guide. --- doc/cn/Developer_Guide.md | 6 ++++++ doc/en/Developer_Guide.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/doc/cn/Developer_Guide.md b/doc/cn/Developer_Guide.md index 2a01aca70e..08e6cb025a 100644 --- a/doc/cn/Developer_Guide.md +++ b/doc/cn/Developer_Guide.md @@ -28,6 +28,12 @@ make - `make` 编译OpenArkCompiler的Release版本; - `make BUILD_TYPE=DEBUG` 编译OpenArkCompiler的Debug版本。 +此外,方舟编译器还提供了源码编译脚本,开发者也可以通过在openarkcompiler目录下执行该脚本,编译出OpenArkCompiler。执行命令如下: + +``` +source build/build.sh +``` + ## Sample示例编译 当前编译方舟编译器Sample应用需要使用到Java基础库,我们以Android系统提供的Java基础库为例,展示Sample样例的编译过程。 diff --git a/doc/en/Developer_Guide.md b/doc/en/Developer_Guide.md index 8dc35cdbde..37297d9a8f 100644 --- a/doc/en/Developer_Guide.md +++ b/doc/en/Developer_Guide.md @@ -29,6 +29,12 @@ Command description: - `make`: Compile the release version of OpenArkCompiler. - `make BUILD_TYPE=DEBUG`: Compile the debug version of OpenArkCompiler. +In addition, the OpenArkCompiler also provides a shell script which contains the command to compile OpenArkCompiler. The developer can run the script in the openarkcompiler directory to compile OpenArkCompiler. The command to run the script: + +``` +source build/build.sh +``` + ## Compiling Sample The Java basic library is required for OpenArkCompiler to compile a sample. The following uses the Java basic library provided by the Android OS to describe the sample compilation process. -- Gitee