-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-sysroot
- Loading branch information
Showing
7 changed files
with
119 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@ECHO OFF | ||
SETLOCAL enabledelayedexpansion | ||
|
||
SET command=%* | ||
|
||
:: Resolve the `${pwd}` placeholders | ||
SET command=!command:${pwd}=%CD%! | ||
|
||
:: Strip out the leading `--` argument. | ||
SET command=!command:~3! | ||
|
||
:: Find the rustc.exe argument and sanitize it's path | ||
for %%A in (%*) do ( | ||
SET arg=%%~A | ||
if "!arg:~-9!"=="rustc.exe" ( | ||
SET sanitized=!arg:/=\! | ||
|
||
SET command=!sanitized! !command:%%~A=! | ||
goto :break | ||
) | ||
) | ||
|
||
:break | ||
|
||
%command% | ||
|
||
:: Capture the exit code of rustc.exe | ||
SET exit_code=!errorlevel! | ||
|
||
:: Exit with the same exit code | ||
EXIT /b %exit_code% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# Skip the first argument which is expected to be `--` | ||
shift | ||
|
||
args=() | ||
|
||
for arg in "$@"; do | ||
# Check if the argument contains "${PWD}" and replace it with the actual value of PWD | ||
if [[ "${arg}" == *'${pwd}'* ]]; then | ||
arg="${arg//\$\{pwd\}/$PWD}" | ||
fi | ||
args+=("${arg}") | ||
done | ||
|
||
exec "${args[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""The version of rules_rust.""" | ||
|
||
VERSION = "0.29.1" | ||
VERSION = "0.30.0" |