Skip to content

Commit ea36ed5

Browse files
committed
Correct linker-wrapper script under Msys2 and Cygwin. Fixes #58
1 parent aff8cdb commit ea36ed5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1+
@echo off
2+
if defined SHELL (
3+
where /q cygpath
4+
if ERRORLEVEL 1 (
5+
goto WINSHELL
6+
)
7+
setlocal enabledelayedexpansion
8+
for /f %%i in ('cygpath -w %SHELL%') do (
9+
if exist "%%i" (
10+
"%%i" -c 'RUST_ANDROID_GRADLE_CC="$(cygpath -u "$RUST_ANDROID_GRADLE_CC")";exec "$(cygpath -u "%~dp0linker-wrapper.sh")" "%*"'
11+
exit !errorlevel!
12+
)
13+
exit 1
14+
)
15+
endlocal
16+
)
17+
:WINSHELL
18+
@echo on
119
"%RUST_ANDROID_GRADLE_PYTHON_COMMAND%" "%RUST_ANDROID_GRADLE_LINKER_WRAPPER_PY%" %*

0 commit comments

Comments
 (0)