We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e8e85 commit 3860631Copy full SHA for 3860631
1 file changed
.github/workflows/nightly_rustc.yml
@@ -64,3 +64,20 @@ jobs:
64
run: |
65
cd rust
66
./x build --host=${{ matrix.arch.host_target }} --stage 2 --config ../rustc_codegen_gcc/tests/bootstraps/bootstrap.${{ matrix.arch.host_target }}.toml
67
+
68
+ - name: Link toolchain
69
+ run: rustup toolchain link my-toolchain build/${{ matrix.arch.host_target }}/stage2
70
71
+ - name: Compile test program
72
+ run: |
73
+ cd rustc_codegen_gcc/tests/hello-world
74
+ cargo +my-toolchain build
75
76
+ objcopy --dump-section .comment=comment target/debug/hello_world
77
+ grep "rustc version .* with libgccjit" comment
78
+ grep 'GCC: ' comment
79
80
+ cargo +my-toolchain run > hello_world_stdout
81
82
+ expected_output="40"
83
+ test $(cat hello_world_stdout) == $expected_output || (echo "Output differs. Actual output: $(cat hello_world_stdout)"; exit 1)
0 commit comments