Update custom rustc instructions (#73)

This commit is contained in:
antoyo 2021-08-28 11:34:47 -04:00 committed by GitHub
parent 6f50986667
commit 5dad13cc3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -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
View File

@ -15,3 +15,4 @@ gimple*
*asm
res
test-backend
gcc_path

View File

@ -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`.

View File