Skip to content

Commit 4422cd3

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

File tree

1 file changed

+17
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)