Skip to content

Commit 45663d5

Browse files
committed
TO REVERT: changes to debug failing tests
1 parent 95858df commit 45663d5

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

build_sysroot/build_sysroot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rm -r sysroot/ 2>/dev/null || true
1919
export RUSTFLAGS="$RUSTFLAGS -Z force-unstable-if-unmarked"
2020
if [[ "$1" == "--release" ]]; then
2121
sysroot_channel='release'
22-
RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=3 -C embed-bitcode=yes -C lto=no " cargo build --target $TARGET_TRIPLE --release
22+
RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=3" cargo build --target $TARGET_TRIPLE --release
2323
else
2424
sysroot_channel='debug'
2525
cargo build --target $TARGET_TRIPLE --features compiler_builtins/c

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* For Thin LTO, this might be helpful:
66
* In gcc 4.6 -fwhopr was removed and became default with -flto. The non-whopr path can still be executed via -flto-partition=none.
77
*
8+
* Maybe some missing optizations enabled by rustc's LTO is in there: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
9+
*
810
* TODO(antoyo): remove the patches.
911
*/
1012

test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ function build_sysroot() {
166166
}
167167

168168
function std_tests() {
169-
echo "[AOT] arbitrary_self_types_pointers_and_wrappers"
170-
$RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitrary_self_types_pointers_and_wrappers --crate-type bin --target $TARGET_TRIPLE
171-
$RUN_WRAPPER ./target/out/arbitrary_self_types_pointers_and_wrappers
169+
#echo "[AOT] arbitrary_self_types_pointers_and_wrappers"
170+
#$RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitrary_self_types_pointers_and_wrappers --crate-type bin --target $TARGET_TRIPLE
171+
#$RUN_WRAPPER ./target/out/arbitrary_self_types_pointers_and_wrappers
172172

173173
echo "[AOT] alloc_system"
174174
$RUSTC example/alloc_system.rs --crate-type lib --target "$TARGET_TRIPLE"

0 commit comments

Comments
 (0)