Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve gnu lib generation and msvc lib reproducibility (#2016)
- Loading branch information
Showing
13 changed files
with
115 additions
and
195 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,21 +1,9 @@ | ||
The Windows umbrella lib (targeting GNU tooling) is generated using the following steps: | ||
The Windows umbrella lib (targeting GNU and LLVM tooling) is generated using the following steps: | ||
|
||
0. Ensure MSYS2 MinGW environment is installed (https://www.mingw-w64.org/downloads/) | ||
1. Ensure `~\.cargo\config` has the following blocks to override toolchain defaults (customize paths as needed): | ||
|
||
```toml | ||
[target.i686-pc-windows-gnu] | ||
linker = "C:\\msys64\\mingw32\\bin\\i686-w64-mingw32-gcc.exe" | ||
ar = "C:\\msys64\\mingw32\\bin\\ar.exe" | ||
|
||
[target.x86_64-pc-windows-gnu] | ||
linker = "C:\\msys64\\mingw64\\bin\\x86_64-w64-mingw32-gcc.exe" | ||
ar = "C:\\msys64\\mingw64\\bin\\ar.exe" | ||
``` | ||
|
||
1. Open `MSYS2 MinGW 32-bit` | ||
1. Open `MSYS2 MinGW 64-bit` | ||
2. Execute: `pacman -Syuu --noconfirm` (repeat until no further updates available) | ||
3. Repeat step 1 if needed | ||
4. Navigate to crate root | ||
5. Execute: `PATH=$USERPROFILE/.cargo/bin:$PATH cargo run -p tool_gnu --target i686-pc-windows-gnu` | ||
6. Repeat steps 1-5, using the `MSYS MinGW 64-bit` environment and `x86_64-pc-windows-gnu` target | ||
3. Execute: `pacman --needed -S mingw-w64-x86_64-llvm` | ||
4. Repeat step 1 if needed | ||
5. Navigate to crate root | ||
6. Execute: `PATH=$USERPROFILE/.cargo/bin:$PATH cargo run -p tool_gnu -- all` |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.