-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Misc - Forgot the 1.74 overrides/patch/build-script
- Loading branch information
1 parent
bb8552d
commit 7a6145b
Showing
3 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# minicargo overrides file | ||
# | ||
|
||
## rustc needs rustc's libproc_macro (not mrustc's) | ||
#[add.'compiler/rustc_expand'.dependencies] | ||
#proc_macro = { path = "../../library/proc_macro" } | ||
#[add.'compiler/rustc_builtin_macros'.dependencies] | ||
#proc_macro = { path = "../../library/proc_macro" } | ||
#[add.'compiler/rustc_metadata'.dependencies] | ||
#proc_macro = { path = "../../library/proc_macro" } | ||
# | ||
# | ||
#[add.'library/std'.dependencies.compiler_builtins] | ||
#features = ["no-asm"] | ||
#[add.'library/panic_unwind'.dependencies.compiler_builtins] | ||
#features = ["no-asm"] | ||
# | ||
# | ||
#[delete] | ||
## Allow rustc's libproc_macro to build by removing the std dependency (it's built during rustc build, not during std build) | ||
#'library/proc_macro' = [ | ||
# "dependencies.std", | ||
# ] | ||
## mrustc has already built a proc_macro, remove it from libtest's deps (used on linux) | ||
#'library/test' = [ | ||
# "dependencies.proc_macro", | ||
# ] |
Empty file.
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,20 @@ | ||
@set MRUSTC_TARGET_VER=1.74 | ||
@set RUSTC_VERSION=1.74.0 | ||
@set OUTDIR=output-%RUSTC_VERSION% | ||
@set COMMON_ARGS=--vendor-dir ..\rustc-%RUSTC_VERSION%-src\vendor --manifest-overrides ..\rustc-%RUSTC_VERSION%-overrides.toml | ||
@if defined PARLEVEL ( set COMMON_ARGS=%COMMON_ARGS% -j %PARLEVEL% ) | ||
@if "%1" == "mmir" ( | ||
set COMMON_ARGS=%COMMON_ARGS% -Z emit-mmir | ||
set OUTDIR=%OUTDIR%-mmir | ||
) | ||
@set STD_ARGS=--output-dir %OUTDIR% %COMMON_ARGS% | ||
@set STD_ARGS=%STD_ARGS% --script-overrides ..\script-overrides\stable-%RUSTC_VERSION%-windows | ||
@mkdir %OUTDIR% | ||
|
||
x64\Release\minipatch.exe ..\rustc-1.74.0-src.patch ..\rustc-1.74.0-src | ||
@if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
x64\Release\minicargo.exe ..\rustc-%RUSTC_VERSION%-src\library\test %STD_ARGS% | ||
@if %errorlevel% neq 0 exit /b %errorlevel% | ||
x64\Release\minicargo.exe ..\lib\libproc_macro %COMMON_ARGS% --output-dir %OUTDIR% | ||
@if %errorlevel% neq 0 exit /b %errorlevel% |