!523 hiperf rom优化

Merge pull request !523 from yuyanqing/master
This commit is contained in:
openharmony_ci 2024-07-15 11:38:08 +00:00 committed by Gitee
commit 5f0af024ce
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -68,7 +68,17 @@ config("hiperf_inner_config") {
defines += [ "HIPERF_DEBUG_TIME" ]
}
cflags += [ "-std=c++17" ]
cflags += [
"-std=c++17",
"-fvisibility=hidden",
"-fdata-sections",
"-ffunction-sections",
"-Os",
]
cflags_cc = [
"-fvisibility-inlines-hidden",
"-Os",
]
defines += [ "is_mingw=${is_mingw}" ]
defines += [ "is_linux=${is_linux}" ]
defines += [ "is_ohos=${is_ohos}" ]