如何 cause/stop Android ndk-build 显示构建步骤

How to cause/stop Android ndk-build to display build steps

我正在使用 Android NDK 构建项目。今天早上,ndk-build 的输出开始显示大量输出,就好像我在某处设置了一个标志来调试 make 过程一样。下面是日志的一部分,显示了此输出的开始位置。我要删除的行在第 1 列中以加号“+”开头。

make[1]: 进入目录 `/Users/bgm/svn1.8-workspaces/cur-trunk/repo/trunk/coverage/android/Buckets/jni'
[arm64-v8a] 编译:覆盖 <= build_info.c
[arm64-v8a] 编译:覆盖 <= cover.c
/Users/bgm/svn1.8-workspaces/cur-trunk/repo/trunk/coverage/android/Buckets/jni/cover.c:314:9: 注意:#pragma message: __ANDROID_API__: 21
 #pragma 消息 ("__ANDROID_API__: " STRINGIFY(__ANDROID_API__))
         ^
[arm64-v8a] 共享库:libcover.so
+抄送=/Users/bgm/download/google/ndk/android-ndk-r10d/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-gcc
+ '[' -n /Users/bgm/download/google/ndk/android-ndk-r10d/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-gcc ']'
+ '[' x-Wl,-soname,libcover.so '!=' x -a x-Wl,-soname,libcover.so '!=' x-c -a x-Wl,-soname,libcover.so '!=' x-E ']'
+ 转变
+ '[' x-shared '!=' x -a x-shared '!=' x-c -a x-shared '!=' x-E ']'
+ 转变
+ '[' x--sysroot=/Users/bgm/download/google/ndk/android-ndk-r10d/platforms/android-21/arch-arm64 '!=' x -a x--sysroot=/Users/bgm/download/google/ndk/android-ndk-r10d/platforms/android-21/arch-arm64 '!=' x-c -a x--sysroot=/Users/bgm/download/google/ndk/android-ndk-r10d/platforms/android-21/arch-arm64 '! ='x-E']'
+ 转变

... 像上面那样以 '+' 开头的数百行

您是在终端中手动 运行 宁 ndk-build,还是从某处调用?

似乎在 ndk-build 命令的父进程中执行了 set -x。要反转它,请在同一终端中 运行 set +x