Commit 8a420492 authored by Andrew Hsieh's avatar Andrew Hsieh
Browse files

Better fix for ndk-build.cmd to return non-zero ERRORLEVEL

Better fix than https://android-review.googlesource.com/#/c/38631
on issue http://code.google.com/p/android/issues/detail?id=32300

"make" does set ERRORLEVEL but in cmd.exe it seems that ERRORLEVEL
is evaluated before the whole compound statement instead of just
before it is use.

Change-Id: Ia56d3dc89e4b13caabd29aeaf57c277906202fdd
parent f7c681ba
......@@ -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 1
%NDK_ROOT%\prebuilt\windows\bin\make.exe -f %NDK_ROOT%build/core/build-local.mk SHELL=cmd %*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment