diff --git a/doc/cn/Developer_Guide.md b/doc/cn/Developer_Guide.md index 2a01aca70ebe984e2e5c01d675c75a0eaeb1d2e3..08e6cb025a65cded1ccf9a90da845e6d2bf8fce3 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 8dc35cdbde62738e1a2f3b3c2682727b6a17b107..37297d9a8fa5ac5ac74e4f583abcf72371a27329 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.