fune/third_party/rust/encoding_rs/build.rs
Henri Sivonen 680544adcb Bug 1579383 - Update encoding_rs to 0.8.19. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D44989

--HG--
extra : moz-landing-system : lando
2019-09-18 08:26:36 +00:00

12 lines
588 B
Rust

fn main() {
// This does not enable `RUSTC_BOOTSTRAP=1` for `packed_simd`.
// You still need to knowingly have a setup that makes
// `packed_simd` compile. Therefore, having this file on
// crates.io is harmless in terms of users of `encoding_rs`
// accidentally depending on nightly features. Having this
// here means that if you knowingly want this, you only
// need to maintain a fork of `packed_simd` without _also_
// having to maintain a fork of `encoding_rs`.
#[cfg(feature = "simd-accel")]
println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
}