Skip to content

Commit 726b027

Browse files
authored
Merge pull request #280 from solson/archeology
Produce backtraces for miri internals
2 parents 5aed318 + 2cf3949 commit 726b027

26 files changed

+333
-177
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ script:
1515
xargo/build.sh
1616
- |
1717
# Test plain miri
18-
cargo build &&
19-
cargo test &&
18+
cargo build --release &&
19+
cargo test --release &&
2020
cargo install
2121
- |
2222
# Test cargo miri
@@ -26,11 +26,11 @@ script:
2626
cd ..
2727
- |
2828
# and run all tests with full mir
29-
MIRI_SYSROOT=~/.xargo/HOST cargo test
29+
MIRI_SYSROOT=~/.xargo/HOST cargo test --release
3030
- |
3131
# test that the rustc_tests binary compiles
3232
cd rustc_tests &&
33-
cargo build &&
33+
cargo build --release &&
3434
cd ..
3535
notifications:
3636
email:

Cargo.lock

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ license = "MIT/Apache-2.0"
55
name = "miri"
66
repository = "https://github.com/solson/miri"
77
version = "0.1.0"
8+
build = "build.rs"
89

910
[[bin]]
1011
doc = false

build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
use std::env;
2+
3+
fn main() {
4+
// Forward the profile to the main compilation
5+
println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());
6+
}

0 commit comments

Comments
 (0)