mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
ci: Disable optimized tests for asm.js
Since all tests are compiled with LTO effectively in Emscripten this commit disables optimizations to hopefully squeeze some more time out of the CI builders. Closes #48826
This commit is contained in:
parent
cc34ca1c97
commit
1c4b9c1034
@ -29,6 +29,6 @@ ENV EM_CONFIG=/emsdk-portable/.emscripten
|
|||||||
|
|
||||||
ENV TARGETS=asmjs-unknown-emscripten
|
ENV TARGETS=asmjs-unknown-emscripten
|
||||||
|
|
||||||
ENV RUST_CONFIGURE_ARGS --enable-emscripten
|
ENV RUST_CONFIGURE_ARGS --enable-emscripten --disable-optimize-tests
|
||||||
|
|
||||||
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
|
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
|
||||||
|
@ -8,9 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten apparently blows the stack
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fn f(x: isize) -> isize {
|
fn f(x: isize) -> isize {
|
||||||
if x == 1 { return 1; } else { let y: isize = 1 + f(x - 1); return y; }
|
if x == 1 { return 1; } else { let y: isize = 1 + f(x - 1); return y; }
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten no i128 support
|
||||||
|
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
#![deny(const_err)]
|
#![deny(const_err)]
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten no i128 support
|
||||||
|
|
||||||
#![feature(intrinsics, i128_type)]
|
#![feature(intrinsics, i128_type)]
|
||||||
|
|
||||||
mod rusti {
|
mod rusti {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten fma not implemented in emscripten
|
||||||
|
|
||||||
macro_rules! assert_approx_eq {
|
macro_rules! assert_approx_eq {
|
||||||
($a:expr, $b:expr) => ({
|
($a:expr, $b:expr) => ({
|
||||||
let (a, b) = (&$a, &$b);
|
let (a, b) = (&$a, &$b);
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten FIXME(#45351)
|
||||||
|
|
||||||
#![feature(repr_simd, test)]
|
#![feature(repr_simd, test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten FIXME(#45351)
|
||||||
|
|
||||||
#![feature(platform_intrinsics, repr_simd)]
|
#![feature(platform_intrinsics, repr_simd)]
|
||||||
|
|
||||||
extern "platform-intrinsic" {
|
extern "platform-intrinsic" {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten FIXME(#45351)
|
||||||
|
|
||||||
#![feature(repr_simd, platform_intrinsics)]
|
#![feature(repr_simd, platform_intrinsics)]
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten apparently only works in optimized mode
|
||||||
|
|
||||||
const TEST_DATA: [u8; 32 * 1024 * 1024] = [42; 32 * 1024 * 1024];
|
const TEST_DATA: [u8; 32 * 1024 * 1024] = [42; 32 * 1024 * 1024];
|
||||||
|
|
||||||
// Check that the promoted copy of TEST_DATA doesn't
|
// Check that the promoted copy of TEST_DATA doesn't
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
// compile-flags: -C debug_assertions=yes
|
// compile-flags: -C debug_assertions=yes
|
||||||
// ignore-wasm32-bare compiled with panic=abort by default
|
// ignore-wasm32-bare compiled with panic=abort by default
|
||||||
|
// ignore-emscripten dies with an LLVM error
|
||||||
|
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// compile-flags: -C debug_assertions=no
|
// compile-flags: -C debug_assertions=no
|
||||||
|
// ignore-emscripten dies with an LLVM error
|
||||||
|
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten weird assertion?
|
||||||
|
|
||||||
#[repr(packed)]
|
#[repr(packed)]
|
||||||
struct Foo {
|
struct Foo {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten FIXME(#45351) hits an LLVM assert
|
||||||
|
|
||||||
#![feature(repr_simd, platform_intrinsics)]
|
#![feature(repr_simd, platform_intrinsics)]
|
||||||
|
|
||||||
#[repr(simd)]
|
#[repr(simd)]
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten FIXME(#45351) hits an LLVM assert
|
||||||
|
|
||||||
#![feature(repr_simd, platform_intrinsics, concat_idents)]
|
#![feature(repr_simd, platform_intrinsics, concat_idents)]
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-emscripten FIXME(#45351) hits an LLVM assert
|
||||||
|
|
||||||
#![feature(repr_simd, platform_intrinsics)]
|
#![feature(repr_simd, platform_intrinsics)]
|
||||||
|
|
||||||
#[repr(simd)]
|
#[repr(simd)]
|
||||||
|
Loading…
Reference in New Issue
Block a user