Skip to content

Commit 3fac982

Browse files
committedJun 7, 2022
Merge commit 'e8dca3e87d164d2806098c462c6ce41301341f68' into sync_from_cg_gcc
2 parents 50b0025 + e8dca3e commit 3fac982

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7959
-618
lines changed
 

‎compiler/rustc_codegen_gcc/.github/workflows/ci.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
libgccjit_version: ["libgccjit.so", "libgccjit_without_int128.so"]
14+
libgccjit_version: ["libgccjit.so", "libgccjit_without_int128.so", "libgccjit12.so"]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -78,12 +78,21 @@ jobs:
7878
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
7979

8080
- name: Build
81+
if: matrix.libgccjit_version != 'libgccjit12.so'
8182
run: |
8283
./prepare_build.sh
8384
./build.sh
8485
cargo test
8586
./clean_all.sh
8687
88+
- name: Build
89+
if: matrix.libgccjit_version == 'libgccjit12.so'
90+
run: |
91+
./prepare_build.sh
92+
./build.sh --no-default-features
93+
cargo test --no-default-features
94+
./clean_all.sh
95+
8796
- name: Prepare dependencies
8897
run: |
8998
git config --global user.email "user@example.com"
@@ -98,6 +107,7 @@ jobs:
98107
args: --release
99108

100109
- name: Test
110+
if: matrix.libgccjit_version != 'libgccjit12.so'
101111
run: |
102112
# Enable backtraces for easier debugging
103113
export RUST_BACKTRACE=1
@@ -107,3 +117,15 @@ jobs:
107117
export RUN_RUNS=2
108118
109119
./test.sh --release
120+
121+
- name: Test
122+
if: matrix.libgccjit_version == 'libgccjit12.so'
123+
run: |
124+
# Enable backtraces for easier debugging
125+
export RUST_BACKTRACE=1
126+
127+
# Reduce amount of benchmark runs as they are slow
128+
export COMPILE_RUNS=2
129+
export RUN_RUNS=2
130+
131+
./test.sh --release --no-default-features

‎compiler/rustc_codegen_gcc/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ perf.data.old
1313
/rust
1414
/simple-raytracer
1515
/regex
16+
/rand
1617
gimple*
1718
*asm
1819
res
1920
test-backend
2021
gcc_path
2122
benchmarks
23+
tools/llvm-project
24+
tools/llvmint
25+
tools/llvmint-2

0 commit comments

Comments
 (0)
Please sign in to comment.