Skip to content

Commit 5dad13c

Browse files
authored
Update custom rustc instructions (#73)
1 parent 6f50986 commit 5dad13c

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
3232
3333
- name: Set LIBRARY_PATH
34-
run: echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
34+
run: |
35+
echo "LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
36+
echo "LD_LIBRARY_PATH=$(cat gcc_path)" >> $GITHUB_ENV
3537
3638
# https://github.com/actions/cache/issues/133
3739
- name: Fixup owner of ~/.cargo/
@@ -66,6 +68,7 @@ jobs:
6668
run: |
6769
./prepare_build.sh
6870
./build.sh
71+
cargo test
6972
./clean_all.sh
7073
7174
- name: Prepare dependencies

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ gimple*
1515
*asm
1616
res
1717
test-backend
18+
gcc_path

Readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,5 @@ p loc->m_line
113113
114114
### How to use a custom-build rustc
115115
116-
* Build the stage1 compiler (`rustup toolchain link debug-current stage2 build/x86_64-unknown-linux-gnu/stage1`).
116+
* Build the stage2 compiler (`rustup toolchain link debug-current build/x86_64-unknown-linux-gnu/stage2`).
117117
* Clean and rebuild the codegen with `debug-current` in the file `rust-toolchain`.
118-
* Add `~/.rustup/toolchains/debug-current/lib/rustlib/x86_64-unknown-linux-gnu/lib` to `LD_LIBRARY_PATH`.

gcc_path

Whitespace-only changes.

0 commit comments

Comments
 (0)