Skip to content

Commit

Permalink
Rollup merge of rust-lang#39945 - petrochenkov:llvmtarg, r=alexcrichton
Browse files Browse the repository at this point in the history
Use ARM instead of SystemZ for testing uninstalled targets

This needs some explanation.
`config.toml` has section `targets` listing backends that are built during LLVM build:
```
targets = "X86;ARM;AArch64;Mips;PowerPC;SystemZ;JSBackend;MSP430;Sparc;NVPTX"
```
It would be reasonable to expect that `targets = "X86"` would be enough for doing a local build in typical case (building on x86 and not working on some non-x86 platform-specific functionality).
However, for `x.py test` to pass successfully you have to add ARM and SystemZ to the target list as well (`targets = "X86;ARM;SystemZ"`), because two tests (`compile-fail/issue-37131.rs` and `run-make\target-without-atomics`) require these architectures to be enabled in LLVM.
This patch moves `compile-fail/issue-37131.rs` from SystemZ to ARM, so `targets = "X86;ARM"` becomes sufficient for running the full test suite without errors.
  • Loading branch information
eddyb authored Feb 25, 2017
2 parents 30987d6 + 9322a38 commit e62199a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/compile-fail/issue-37131.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// Tests that compiling for a target which is not installed will result in a helpful
// error message.

// compile-flags: --target=s390x-unknown-linux-gnu
// ignore s390x
// compile-flags: --target=thumbv6m-none-eabi
// ignore-arm

// error-pattern:target may not be installed
fn main() { }

0 comments on commit e62199a

Please sign in to comment.