Reputation: 128
I am using the Android NDK to build a project. This morning the output of ndk-build started displaying tons of output as if I had set a flag somewhere to debug the make process. Below is part of the log, showing where this output starts. The lines I want to get rid of begin with a plus '+' in column 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 '+'
Upvotes: 0
Views: 1480
Reputation: 13317
Are you running ndk-build
manually in a terminal, or invoked from somewhere?
It seems like something has executed set -x
in a parent process to the ndk-build
command. To reverse it, run set +x
in the same terminal.
Upvotes: 1