• Andrew Hsieh's avatar
    Simplify finding windows host name to workaround a bug in WINE · c81d48f0
    Andrew Hsieh authored
    Previously find-ndk-root-win-host.cmd set both env. vars: NDK_ROOT
    and NDK_WIN_HOST with the following compound statement
    
        endlocal && set "NDK_ROOT=%TEMP1%" && set "NDK_WIN_HOST=%TEMP2%"
    
    Unfortunately, the "cmd" in WINE appends " " to all but the last
    "set", causing error message reads:
    
      Can't recognize '"Z:\tmp\android-ndk-r9\prebuilt/windows-x86_64 /bin/make.exe" -f
          "Z:\tmp\android-ndk-r9\build/core/build-local.mk" SHELL=cmd
          as an internal or external command, or batch script.
    
    Rename to find-win-host.cmd and recompute NDK_ROOT in both callers
    
    Change-Id: I1c22ca905db74a09b3b99c06d70ef89b66732397
    c81d48f0
ndk-build.cmd 292 Bytes