diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-06-27 17:52:31 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-06-28 10:07:46 -0700 |
commit | 40056ce0f46b34b0ac9cb6047e7635de6bec87c0 (patch) | |
tree | 8dae5f3ac40788fbe702581feb1c2d34ecef1342 /ndk-build.cmd | |
parent | 6f07564ff31610e6e78af4231518aa5d92a92f28 (diff) | |
download | ndk-40056ce0f46b34b0ac9cb6047e7635de6bec87c0.tar.gz |
Fix ndk-build.cmd to return non-zero ERRORLEVEL when make fails
It appears that "make" doesnʼt set ERRORLEVEL running ndk-build.cmd
in cmd.exe shell, which causes ERRORLEVEL to remain zero even when
make fails. Fixed it to return non-zero value when fails.
Related issue:
http://code.google.com/p/android/issues/detail?id=32300
Change-Id: Iedd6c4897035e35910ca12ef6f70730800881aba
Diffstat (limited to 'ndk-build.cmd')
-rw-r--r-- | ndk-build.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ndk-build.cmd b/ndk-build.cmd index fe97bc1bb..d794d5ccf 100644 --- a/ndk-build.cmd +++ b/ndk-build.cmd @@ -2,4 +2,4 @@ rem This is a Windows cmd.exe script used to invoke the NDK-specific GNU Make executable set NDK_ROOT=%~dp0 set NDK_MAKE=%NDK_ROOT%/prebuilt/windows/bin/make.exe -%NDK_ROOT%\prebuilt\windows\bin\make.exe -f %NDK_ROOT%build/core/build-local.mk SHELL=cmd %* || exit /b %ERRORLEVEL% +%NDK_ROOT%\prebuilt\windows\bin\make.exe -f %NDK_ROOT%build/core/build-local.mk SHELL=cmd %* || exit /b 1 |