-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #97813 - antoyo:sync_from_cg_gcc, r=petrochenkov
Sync rustc_codegen_gcc
- Loading branch information
Showing
41 changed files
with
7,956 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
libgccjit_version: ["libgccjit.so", "libgccjit_without_int128.so"] | ||
libgccjit_version: ["libgccjit.so", "libgccjit_without_int128.so", "libgccjit12.so"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -78,12 +78,21 @@ jobs: | |
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }} | ||
|
||
- name: Build | ||
if: matrix.libgccjit_version != 'libgccjit12.so' | ||
run: | | ||
./prepare_build.sh | ||
./build.sh | ||
cargo test | ||
./clean_all.sh | ||
- name: Build | ||
if: matrix.libgccjit_version == 'libgccjit12.so' | ||
run: | | ||
./prepare_build.sh | ||
./build.sh --no-default-features | ||
cargo test --no-default-features | ||
./clean_all.sh | ||
- name: Prepare dependencies | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -98,6 +107,7 @@ jobs: | |
args: --release | ||
|
||
- name: Test | ||
if: matrix.libgccjit_version != 'libgccjit12.so' | ||
run: | | ||
# Enable backtraces for easier debugging | ||
export RUST_BACKTRACE=1 | ||
|
@@ -107,3 +117,15 @@ jobs: | |
export RUN_RUNS=2 | ||
./test.sh --release | ||
- name: Test | ||
if: matrix.libgccjit_version == 'libgccjit12.so' | ||
run: | | ||
# Enable backtraces for easier debugging | ||
export RUST_BACKTRACE=1 | ||
# Reduce amount of benchmark runs as they are slow | ||
export COMPILE_RUNS=2 | ||
export RUN_RUNS=2 | ||
./test.sh --release --no-default-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
disable_all_formatting = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
# Requires the CHANNEL env var to be set to `debug` or `release.` | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
compiler/rustc_codegen_gcc/build_sysroot/prepare_sysroot_src.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
set -e | ||
cd $(dirname "$0") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash --verbose | ||
#!/usr/bin/env bash | ||
set -e | ||
set -v | ||
|
||
rm -rf target/ build_sysroot/{sysroot/,sysroot_src/,target/,Cargo.lock} perf.data{,.old} | ||
rm -rf regex/ simple-raytracer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
compiler/rustc_codegen_gcc/crate_patches/0002-rand-Disable-failing-test.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From a8fb97120d71252538b6b026695df40d02696bdb Mon Sep 17 00:00:00 2001 | ||
From: bjorn3 <[email protected]> | ||
Date: Sat, 15 Aug 2020 20:04:38 +0200 | ||
Subject: [PATCH] [rand] Disable failing test | ||
|
||
--- | ||
src/distributions/uniform.rs | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/distributions/uniform.rs b/src/distributions/uniform.rs | ||
index 480b859..c80bb6f 100644 | ||
--- a/src/distributions/uniform.rs | ||
+++ b/src/distributions/uniform.rs | ||
@@ -1085,7 +1085,7 @@ mod tests { | ||
_ => panic!("`UniformDurationMode` was not serialized/deserialized correctly") | ||
} | ||
} | ||
- | ||
+ | ||
#[test] | ||
#[cfg(feature = "serde1")] | ||
fn test_uniform_serialization() { | ||
@@ -1314,6 +1314,7 @@ mod tests { | ||
not(target_arch = "wasm32"), | ||
not(target_arch = "asmjs") | ||
))] | ||
+ #[ignore] // FIXME | ||
fn test_float_assertions() { | ||
use super::SampleUniform; | ||
use std::panic::catch_unwind; | ||
-- | ||
2.20.1 |
Oops, something went wrong.