我正在使用Android NDK来构建项目。今天早上,ndk-build的输出开始显示大量的输出,好像我已经在某个地方设置了一个标志来调试make过程。下面是日志的一部分,显示此输出的开始位置。我想摆脱的线条以加号&+ 39; +'开头。在第1栏中。
make[1]: Entering directory `/Users/bgm/svn1.8-workspaces/cur-trunk/repo/trunk/coverage/android/Buckets/jni' [arm64-v8a] Compile : cover <= build_info.c [arm64-v8a] Compile : cover <= cover.c /Users/bgm/svn1.8-workspaces/cur-trunk/repo/trunk/coverage/android/Buckets/jni/cover.c:314:9: note: #pragma message: __ANDROID_API__: 21 #pragma message ("__ANDROID_API__: " STRINGIFY(__ANDROID_API__)) ^ [arm64-v8a] SharedLibrary : libcover.so + CC=/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 ']' + shift + '[' x-shared '!=' x -a x-shared '!=' x-c -a x-shared '!=' x-E ']' + shift + '[' 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 ']' + shift ... hundreds of lines like the above that start with '+'
答案 0 :(得分:1)
您是在终端中手动运行ndk-build
,还是从某处调用?
似乎某些东西在set -x
命令的父进程中执行了ndk-build
。要反转它,请在同一终端中运行set +x
。