diff --git a/BUILD.gn b/BUILD.gn index 1160586e0c73ca9ea94cdf458ef24befd5908dda..ad5f83ebfefebc1f1ce597ef0ca51cb52feab491 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Copyright (c) 2021-2025 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 @@ -169,12 +169,14 @@ config("ark_toolchain_common_config") { cflags_cc += [ "-O3", "-ggdb3", + "-gdwarf-4", "-fno-omit-frame-pointer", "-D_GLIBCXX_ASSERTIONS", ] cflags_c += [ "-O3", "-ggdb3", + "-gdwarf-4", "-fno-omit-frame-pointer", "-D_GLIBCXX_ASSERTIONS", ] @@ -182,6 +184,7 @@ config("ark_toolchain_common_config") { cflags_cc += [ "-O0", "-ggdb3", + "-gdwarf-4", ] } else { defines += [ "NDEBUG" ]