mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Update custom rustc instructions (#73)
This commit is contained in:
parent
6f50986667
commit
5dad13cc3b
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -31,7 +31,9 @@ jobs:
|
||||
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
|
||||
|
||||
- name: Set LIBRARY_PATH
|
||||
run: echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
|
||||
run: |
|
||||
echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
|
||||
echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
|
||||
|
||||
# https://github.com/actions/cache/issues/133
|
||||
- name: Fixup owner of ~/.cargo/
|
||||
@ -66,6 +68,7 @@ jobs:
|
||||
run: |
|
||||
./prepare_build.sh
|
||||
./build.sh
|
||||
cargo test
|
||||
./clean_all.sh
|
||||
|
||||
- name: Prepare dependencies
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@ gimple*
|
||||
*asm
|
||||
res
|
||||
test-backend
|
||||
gcc_path
|
||||
|
@ -113,6 +113,5 @@ p loc->m_line
|
||||
|
||||
### How to use a custom-build rustc
|
||||
|
||||
* Build the stage1 compiler (`rustup toolchain link debug-current stage2 build/x86_64-unknown-linux-gnu/stage1`).
|
||||
* Build the stage2 compiler (`rustup toolchain link debug-current build/x86_64-unknown-linux-gnu/stage2`).
|
||||
* Clean and rebuild the codegen with `debug-current` in the file `rust-toolchain`.
|
||||
* Add `~/.rustup/toolchains/debug-current/lib/rustlib/x86_64-unknown-linux-gnu/lib` to `LD_LIBRARY_PATH`.
|
||||
|
Loading…
Reference in New Issue
Block a user