File tree Expand file tree Collapse file tree 7 files changed +19
-2
lines changed Expand file tree Collapse file tree 7 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 74
74
echo $(readlink -f gcc-build) > gcc_path
75
75
# NOTE: the filename is still libgccjit.so even when the artifact name is different.
76
76
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
77
+ mkdir -p /opt/gcc/libexec/gcc/x86_64-linux-gnu/11
78
+ cp gcc-build/*lto* /opt/gcc/libexec/gcc/x86_64-linux-gnu/11/
77
79
78
80
- name : Set env
79
81
run : |
Original file line number Diff line number Diff line change 52
52
echo $(readlink -f gcc-build) > gcc_path
53
53
# NOTE: the filename is still libgccjit.so even when the artifact name is different.
54
54
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
55
+ mkdir -p /opt/gcc/libexec/gcc/x86_64-linux-gnu/11
56
+ cp gcc-build/*lto* /opt/gcc/libexec/gcc/x86_64-linux-gnu/11/
55
57
56
58
- name : Set env
57
59
run : |
Original file line number Diff line number Diff line change 66
66
echo $(readlink -f gcc-build) > gcc_path
67
67
# NOTE: the filename is still libgccjit.so even when the artifact name is different.
68
68
ln gcc-build/libgccjit.so gcc-build/libgccjit.so.0
69
+ mkdir -p /opt/gcc/libexec/gcc/x86_64-linux-gnu/11
70
+ cp gcc-build/*lto* /opt/gcc/libexec/gcc/x86_64-linux-gnu/11/
69
71
70
72
- name : Set env
71
73
run : |
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ rm -r sysroot/ 2>/dev/null || true
19
19
export RUSTFLAGS=" $RUSTFLAGS -Z force-unstable-if-unmarked"
20
20
if [[ " $1 " == " --release" ]]; then
21
21
sysroot_channel=' release'
22
+ # FIXME: make LIBRARY_PATH something approciate in the CI.
22
23
LIBRARY_PATH=/home/bouanto/Ordinateur/Programmation/Projets/gcc-repo/gcc-build/build/gcc GCC_EXEC_PREFIX=/opt/gcc/libexec/gcc/x86_64-pc-linux-gnu RUSTFLAGS=" $RUSTFLAGS -Zmir-opt-level=3" cargo build --target $TARGET_TRIPLE --release
23
24
# CG_GCCJIT_DUMP_TREE_ALL=1 CG_GCCJIT_KEEP_INTERMEDIATES=1 RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=3" cargo build --target $TARGET_TRIPLE --release
24
25
else
Original file line number Diff line number Diff line change 21
21
shift
22
22
23
23
# TODO: remove LIBRARY_PATH and GCC_EXEC_PREFIX. Those are used to debug the LTO front-end.
24
- LIBRARY_PATH=/home/bouanto/Ordinateur/Programmation/Projets/gcc-repo/gcc-build/build/gcc GCC_EXEC_PREFIX=/opt/gcc/libexec/gcc/x86_64-pc-linux-gnu PATH=$PATH :/opt/gcc/bin RUSTDOCFLAGS=" $RUSTFLAGS " cargo +${TOOLCHAIN} $cmd $@
24
+ # LIBRARY_PATH=/home/bouanto/Ordinateur/Programmation/Projets/gcc-repo/gcc-build/build/gcc GCC_EXEC_PREFIX=/opt/gcc/libexec/gcc/x86_64-pc-linux-gnu
25
+ PATH=$PATH :/opt/gcc/bin RUSTDOCFLAGS=" $RUSTFLAGS " cargo +${TOOLCHAIN} $cmd $@
Original file line number Diff line number Diff line change @@ -70,3 +70,11 @@ tests/ui/panics/nested_panic_caught.rs
70
70
tests/ui/simd/intrinsic/generic-bswap-byte.rs
71
71
tests/ui/const_prop/ice-issue-111353.rs
72
72
tests/ui/process/println-with-broken-pipe.rs
73
+ tests/ui/panic-runtime/lto-abort.rs
74
+ tests/ui/lto/thin-lto-inlines2.rs
75
+ tests/ui/lto/weak-works.rs
76
+ tests/ui/lto/thin-lto-inlines.rs
77
+ tests/ui/lto/thin-lto-global-allocator.rs
78
+ tests/ui/lto/msvc-imp-present.rs
79
+ tests/ui/lto/lto-thin-rustc-loads-linker-plugin.rs
80
+ tests/ui/lto/all-crates.rs
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function clean() {
151
151
152
152
function mini_tests() {
153
153
echo " [BUILD] mini_core"
154
- $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --target $TARGET_TRIPLE
154
+ GCC_EXEC_PREFIX=/opt/gcc/libexec/gcc/x86_64-pc-linux-gnu $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --target $TARGET_TRIPLE
155
155
156
156
echo " [BUILD] example"
157
157
$RUSTC example/example.rs --crate-type lib --target $TARGET_TRIPLE
@@ -337,6 +337,7 @@ function extended_sysroot_tests() {
337
337
}
338
338
339
339
function test_rustc() {
340
+ # FIXME: LTO UI tests probably fail because GCC_EXEC_PREFIX is not set.
340
341
echo
341
342
echo " [TEST] rust-lang/rust"
342
343
You can’t perform that action at this time.
0 commit comments