Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4406a15

Browse files
authoredMar 6, 2021
Rollup merge of #82808 - bjorn3:sync_cg_clif-2021-03-05, r=bjorn3
Sync rustc_codegen_cranelift The main highlight of this sync is removal of support for the old x86 Cranelift backend. This made it possible to use native atomic instructions rather than hackishly using a global mutex. 128bit integer support has also seen a few bugfixes and performance improvements. And finally I have formatted everything using the same rustfmt config as the rest of this repo. r? ``@ghost`` ``@rustbot`` label +A-codegen +A-cranelift +T-compiler
2 parents 85796e0 + 7a6ea77 commit 4406a15

Some content is hidden

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

73 files changed

+1143
-2594
lines changed
 
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
task:
2+
name: freebsd
3+
freebsd_instance:
4+
image: freebsd-12-1-release-amd64
5+
setup_rust_script:
6+
- pkg install -y curl git bash
7+
- curl https://sh.rustup.rs -sSf --output rustup.sh
8+
- sh rustup.sh --default-toolchain none -y --profile=minimal
9+
cargo_bin_cache:
10+
folder: ~/.cargo/bin
11+
target_cache:
12+
folder: target
13+
prepare_script:
14+
- . $HOME/.cargo/env
15+
- git config --global user.email "user@example.com"
16+
- git config --global user.name "User"
17+
- ./prepare.sh
18+
test_script:
19+
- . $HOME/.cargo/env
20+
- # Enable backtraces for easier debugging
21+
- export RUST_BACKTRACE=1
22+
- # Reduce amount of benchmark runs as they are slow
23+
- export COMPILE_RUNS=2
24+
- export RUN_RUNS=2
25+
- ./test.sh

‎compiler/rustc_codegen_cranelift/.github/workflows/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, macos-latest]
15-
env:
16-
- BACKEND: ""
17-
- BACKEND: --oldbe
1815

1916
steps:
2017
- uses: actions/checkout@v2
@@ -54,7 +51,7 @@ jobs:
5451
export COMPILE_RUNS=2
5552
export RUN_RUNS=2
5653
57-
./test.sh $BACKEND
54+
./test.sh
5855
5956
- name: Package prebuilt cg_clif
6057
run: tar cvfJ cg_clif.tar.xz build

0 commit comments

Comments
 (0)
Please sign in to comment.