cmake 相当于 ndk-build 的 NDK_DEBUG=1

cmake equivalent of ndk-build's NDK_DEBUG=1

当我使用 ndk-build 构建模块时,我想在调试模式下构建它,然后我知道该怎么做。但目前 cmake 是构建模块的推荐工具 - NDK_DEBUG=1 相当于用 cmake 构建 android 模块?

我在官方网站上找到了文档:下面参考 table 1 是工具提示 (https://developer.android.com/ndk/guides/ndk-build#dvr):

Note: NDK_DEBUG=0 is the equivalent of APP_OPTIM=release, and compiles with -O2. 
NDK_DEBUG=1 is the equivalent of APP_OPTIM=debug in Application.mk, 
and compiles with -O0. For more information about APP_OPTIM, see Application.mk.