Change Shed Model

Signed-off-by: erjuan <fengting11@huawei.com>
This commit is contained in:
erjuan 2024-10-30 15:19:54 +08:00
parent 962ee2f46e
commit 710e5ca285
2 changed files with 7 additions and 0 deletions

View File

@ -41,6 +41,9 @@ declare_args() {
# Enable atomic for building.
ace_engine_feature_enable_atomic = false
# Set Instruction Sched Model
ace_engine_feature_sched_model = ""
# Enable test coverage
ace_engine_feature_enable_coverage = false

View File

@ -103,6 +103,10 @@ config("ace_engine_public_config") {
config("lto_link_config") {
ldflags = [ "-Wl,--lto-O2" ]
if (ace_engine_feature_enable_pgo && enable_enhanced_opt) {
ldflags +=
[ "-Wl,-mllvm,-force-sched-model=${ace_engine_feature_sched_model}" ]
}
}
ohos_shared_library("libace_compatible") {