Skip to content

Commit

Permalink
Rollup merge of rust-lang#52914 - nagisa:sparc-is-sparc’s-own-busines…
Browse files Browse the repository at this point in the history
…s, r=alexcrichton

Only run the sparc-abi test on sparc

It is not required for LLVM to have SPARC target support, so it is
necessary to only run this test when LLVM does support SPARC. Sadly, it
isn’t possible to specify exactly this constraint. Instead, we specify
that this test should run on SPARC host only (it surely is sane
assumption to make that compiler running on a SPARC can generate
SPARC, right?)

Since you cannot specify multiple `only-*` to have it run on both 32-bit
and 64-bit SPARC we pick 64-bit SPARC, because it is exactly what is
being tested by this test.

Fixes rust-lang#52881
  • Loading branch information
GuillaumeGomez committed Jul 31, 2018
2 parents e75abe2 + 40a6046 commit b9637b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/codegen/sparc-struct-abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// Checks that we correctly codegen extern "C" functions returning structs.
// See issue #52638.

// only-sparc64
// compile-flags: -O --target=sparc64-unknown-linux-gnu --crate-type=rlib
#![feature(no_core, lang_items)]
#![no_core]
Expand Down

0 comments on commit b9637b5

Please sign in to comment.