forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#116578 - antoyo:subtree-update_cg_gcc_2023-10…
…-09, r=bjorn3 subtree update cg_gcc 2023/10/09
- Loading branch information
Showing
82 changed files
with
2,844 additions
and
657 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 |
---|---|---|
|
@@ -57,8 +57,8 @@ jobs: | |
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: main.yml | ||
name: ${{ matrix.libgccjit_version.gcc }} | ||
path: gcc-build | ||
name: gcc-13 | ||
path: gcc-13 | ||
repo: antoyo/gcc | ||
branch: ${{ matrix.libgccjit_version.artifacts_branch }} | ||
event: push | ||
|
@@ -71,9 +71,8 @@ jobs: | |
- name: Setup path to libgccjit | ||
if: matrix.libgccjit_version.gcc != 'libgccjit12.so' | ||
run: | | ||
echo $(readlink -f gcc-build) > gcc_path | ||
# NOTE: the filename is still libgccjit.so even when the artifact name is different. | ||
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0 | ||
sudo dpkg --force-overwrite -i gcc-13/gcc-13.deb | ||
echo /usr/lib/ > gcc_path | ||
- name: Set env | ||
run: | | ||
|
@@ -119,16 +118,16 @@ jobs: | |
|
||
- name: Build | ||
run: | | ||
./prepare_build.sh | ||
${{ matrix.libgccjit_version.env_extra }} ./build.sh ${{ matrix.libgccjit_version.extra }} | ||
./y.sh prepare --only-libcore | ||
${{ matrix.libgccjit_version.env_extra }} ./y.sh build ${{ matrix.libgccjit_version.extra }} | ||
${{ matrix.libgccjit_version.env_extra }} cargo test ${{ matrix.libgccjit_version.extra }} | ||
./clean_all.sh | ||
- name: Prepare dependencies | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "User" | ||
./prepare.sh | ||
./y.sh prepare | ||
# Compile is a separate step, as the actions-rs/cargo action supports error annotations | ||
- name: Compile | ||
|
@@ -141,6 +140,9 @@ jobs: | |
if: ${{ matrix.libgccjit_version.gcc == 'libgccjit12.so' }} | ||
run: cat failing-ui-tests12.txt >> failing-ui-tests.txt | ||
|
||
- name: Add more failing tests because the sysroot is not compiled with LTO | ||
run: cat failing-non-lto-tests.txt >> failing-ui-tests.txt | ||
|
||
- name: Run tests | ||
run: | | ||
${{ matrix.libgccjit_version.env_extra }} ./test.sh --release --clean --build-sysroot ${{ matrix.commands }} ${{ matrix.libgccjit_version.extra }} | ||
|
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 |
---|---|---|
|
@@ -18,8 +18,6 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
libgccjit_version: | ||
- { gcc: "libgccjit.so", artifacts_branch: "master" } | ||
commands: [ | ||
"--test-successful-rustc --nb-parts 2 --current-part 0", | ||
"--test-successful-rustc --nb-parts 2 --current-part 1", | ||
|
@@ -40,18 +38,17 @@ jobs: | |
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: main.yml | ||
name: ${{ matrix.libgccjit_version.gcc }} | ||
path: gcc-build | ||
name: gcc-13 | ||
path: gcc-13 | ||
repo: antoyo/gcc | ||
branch: ${{ matrix.libgccjit_version.artifacts_branch }} | ||
branch: "master" | ||
event: push | ||
search_artifacts: true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts. | ||
|
||
- name: Setup path to libgccjit | ||
run: | | ||
echo $(readlink -f gcc-build) > gcc_path | ||
# NOTE: the filename is still libgccjit.so even when the artifact name is different. | ||
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0 | ||
sudo dpkg --force-overwrite -i gcc-13/gcc-13.deb | ||
echo /usr/lib/ > gcc_path | ||
- name: Set env | ||
run: | | ||
|
@@ -88,16 +85,18 @@ jobs: | |
|
||
- name: Build | ||
run: | | ||
./prepare_build.sh | ||
./build.sh --release --release-sysroot | ||
./y.sh prepare --only-libcore | ||
EMBED_LTO_BITCODE=1 ./y.sh build --release --release-sysroot | ||
cargo test | ||
./clean_all.sh | ||
- name: Prepare dependencies | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "User" | ||
./prepare.sh | ||
./y.sh prepare | ||
# FIXME(antoyo): we cannot enable LTO for stdarch tests currently because of some failing LTO tests using proc-macros. | ||
echo -n 'lto = "fat"' >> build_sysroot/Cargo.toml | ||
# Compile is a separate step, as the actions-rs/cargo action supports error annotations | ||
- name: Compile | ||
|
@@ -106,6 +105,9 @@ jobs: | |
command: build | ||
args: --release | ||
|
||
- name: Add more failing tests because of undefined symbol errors (FIXME) | ||
run: cat failing-lto-tests.txt >> failing-ui-tests.txt | ||
|
||
- name: Run tests | ||
run: | | ||
./test.sh --release --clean --release-sysroot --build-sysroot ${{ matrix.commands }} | ||
EMBED_LTO_BITCODE=1 ./test.sh --release --clean --release-sysroot --build-sysroot ${{ matrix.commands }} |
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 |
---|---|---|
|
@@ -18,8 +18,6 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
libgccjit_version: | ||
- { gcc: "libgccjit.so", artifacts_branch: "master" } | ||
cargo_runner: [ | ||
"sde -future -rtm_mode full --", | ||
"", | ||
|
@@ -54,18 +52,17 @@ jobs: | |
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: main.yml | ||
name: ${{ matrix.libgccjit_version.gcc }} | ||
path: gcc-build | ||
name: gcc-13 | ||
path: gcc-13 | ||
repo: antoyo/gcc | ||
branch: ${{ matrix.libgccjit_version.artifacts_branch }} | ||
branch: "master" | ||
event: push | ||
search_artifacts: true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts. | ||
|
||
- name: Setup path to libgccjit | ||
run: | | ||
echo $(readlink -f gcc-build) > gcc_path | ||
# NOTE: the filename is still libgccjit.so even when the artifact name is different. | ||
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0 | ||
sudo dpkg --force-overwrite -i gcc-13/gcc-13.deb | ||
echo /usr/lib/ > gcc_path | ||
- name: Set env | ||
run: | | ||
|
@@ -102,8 +99,8 @@ jobs: | |
|
||
- name: Build | ||
run: | | ||
./prepare_build.sh | ||
./build.sh --release --release-sysroot | ||
./y.sh prepare --only-libcore | ||
./y.sh build --release --release-sysroot | ||
cargo test | ||
- name: Clean | ||
|
@@ -115,7 +112,7 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "User" | ||
./prepare.sh | ||
./y.sh prepare | ||
# Compile is a separate step, as the actions-rs/cargo action supports error annotations | ||
- name: Compile | ||
|
@@ -133,10 +130,11 @@ jobs: | |
if: ${{ !matrix.cargo_runner }} | ||
run: | | ||
cd build_sysroot/sysroot_src/library/stdarch/ | ||
CHANNEL=release TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test | ||
CHANNEL=release TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ../../../../cargo.sh test | ||
- name: Run stdarch tests | ||
if: ${{ matrix.cargo_runner }} | ||
run: | | ||
cd build_sysroot/sysroot_src/library/stdarch/ | ||
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu ../../../../cargo.sh test -- --skip rtm --skip tbm --skip sse4a | ||
# FIXME: these tests fail when the sysroot is compiled with LTO because of a missing symbol in proc-macro. | ||
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ../../../../cargo.sh test -- --skip rtm --skip tbm --skip sse4a |
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
Oops, something went wrong.