diff --git a/Makefile b/Makefile index 208d4e8b84e56ac47088c25c946478f724e995e9..56cadfd8e46da864c572aef1678d146c52f6b80b 100644 --- a/Makefile +++ b/Makefile @@ -121,12 +121,16 @@ test_ourboros: libcore .PHONY: testall testall: test_irbuild test_ourboros +.PHONY: cleanrsd +cleanrsd: + @rm -rf libjava-core/libcore-all.* libjava-core/m* libjava-core/comb.* + .PHONY: clean -clean: - @rm -rf $(MAPLE_BUILD_OUTPUT)/ +clean: cleanrsd + @rm -rf $(MAPLE_BUILD_OUTPUT) .PHONY: clobber -clobber: clean +clobber: cleanrsd @rm -rf output define build_gn diff --git a/Readme.md b/Readme.md index 1a3b5b4fedb240261b0c65960977b214cb2cb857..3f1173d62e2a4c0147254ffd8576d67632cd59d3 100644 --- a/Readme.md +++ b/Readme.md @@ -40,6 +40,8 @@ Open the front end, back end, and compilation optimization of compilers. Support ## How to use - source build/envsetup.sh arm release + or +- source build/envsetup.sh arm debug - make setup - make - make libcore diff --git a/Readme_zh.md b/Readme_zh.md index 6bfba5aec2788d3fffe550f56b914bd2134bf294..1268d823b3cd424d3bdbf868fa84ece8348e937b 100644 --- a/Readme_zh.md +++ b/Readme_zh.md @@ -36,6 +36,8 @@ OpenArkCompiler是来自华为方舟编译器的开源项目。 ## 如何使用 - source build/envsetup.sh arm release + 或 +- source build/envsetup.sh arm debug - make setup - make - make libcore diff --git a/build/envsetup.sh b/build/envsetup.sh index c239e9cbdac1b03bdd48cf4bc9b4c6867d4bf9fb..81e8417c653f978114c1d9d76c8b3c82bbc931b3 100644 --- a/build/envsetup.sh +++ b/build/envsetup.sh @@ -88,7 +88,7 @@ else fi unset MAPLE_DEBUG -export MAPLE_DEBUG=0 +export MAPLE_DEBUG=${DEBUG} unset TARGET_PROCESSOR export TARGET_PROCESSOR=${PLATFORM}