Add fastverify mode

Description: Add fastverify mode for build

Testing: all tests passed

Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/IA7YUE

Signed-off-by: Tokmakov Alexander <dayver001@yandex.ru>
Change-Id: Ie6866f02936f26b2694bb6b7a6a87f5f0e259ba7
This commit is contained in:
bergamot14 2024-06-24 20:46:03 +03:00
parent 75239847ce
commit f66c9fc445
4 changed files with 40 additions and 1 deletions

View File

@ -94,6 +94,8 @@ config("ark_toolchain_common_config") {
"-Wformat=2",
]
cflags_c = []
if (is_linux) {
defines += [
"PANDA_TARGET_UNIX",
@ -163,7 +165,20 @@ config("ark_toolchain_common_config") {
]
}
if (is_debug) {
if (is_fastverify) {
cflags_cc += [
"-O3",
"-ggdb3",
"-fno-omit-frame-pointer",
"-D_GLIBCXX_ASSERTIONS",
]
cflags_c += [
"-O3",
"-ggdb3",
"-fno-omit-frame-pointer",
"-D_GLIBCXX_ASSERTIONS",
]
} else if (is_debug) {
cflags_cc += [
"-O0",
"-ggdb3",

View File

@ -186,6 +186,12 @@ class ArkPy:
"gn_args": ["is_debug=true"],
"suffix_of_name_of_out_dir_of_second_level": "debug",
},
"fastverify": {
"flags": ["fastverify", "fv"],
"description": "Build for arkcompiler target(executables and libraries) for fastverify.",
"gn_args": ["is_debug=true is_fastverify=true"],
"suffix_of_name_of_out_dir_of_second_level": "fastverify",
},
},
"target": {
"test262": {

View File

@ -0,0 +1,16 @@
# Copyright (c) 2024 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
declare_args() {
is_fastverify = false
}

View File

@ -22,10 +22,12 @@ if (target_cpu == "arm64") {
if (!ark_standalone_build) {
build_root = "//build"
ark_third_party_root = "//third_party"
import("$build_root/config/components/toolchain/build_type.gni")
import("$build_root/ohos.gni")
} else {
ark_third_party_root = "//arkcompiler/toolchain/build/third_party_gn"
import("$build_root/ark.gni")
import("$build_root/config/build_type.gni")
}
ark_root = "//arkcompiler/runtime_core"
js_root = "//arkcompiler/ets_runtime"