This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
591ce8fe6fc784d493734ea9092b995426d22667
rust
/
library
/
stdarch
/
crates
/
coresimd
/
build.rs
6 lines
101 B
Rust
Raw
Normal View
History
Unescape
Escape
Fix default `cargo test` experience (#397) Turns out Cargo doesn't automatically set `TARGET` for rustc invocations so carry it forward manually from the build script over to the rustc invocation.
2018-03-22 17:40:44 -05:00
use
std
::
env
;
fn
main
(
)
{
reformat with latest rustfmt
2018-06-06 00:17:14 +02:00
println!
(
"
cargo:rustc-env=TARGET=
{}
"
,
env
::
var
(
"
TARGET
"
)
.
unwrap
(
)
)
;
Fix default `cargo test` experience (#397) Turns out Cargo doesn't automatically set `TARGET` for rustc invocations so carry it forward manually from the build script over to the rustc invocation.
2018-03-22 17:40:44 -05:00
}
Reference in New Issue
Copy Permalink