File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +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
- 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
23
23
else
24
24
sysroot_channel=' debug'
25
25
cargo build --target $TARGET_TRIPLE --features compiler_builtins/c
Original file line number Diff line number Diff line change 5
5
* For Thin LTO, this might be helpful:
6
6
* In gcc 4.6 -fwhopr was removed and became default with -flto. The non-whopr path can still be executed via -flto-partition=none.
7
7
*
8
+ * Maybe some missing optizations enabled by rustc's LTO is in there: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
9
+ *
8
10
* TODO(antoyo): remove the patches.
9
11
*/
10
12
Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ function build_sysroot() {
166
166
}
167
167
168
168
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
172
172
173
173
echo " [AOT] alloc_system"
174
174
$RUSTC example/alloc_system.rs --crate-type lib --target " $TARGET_TRIPLE "
You can’t perform that action at this time.
0 commit comments