Make usage of simd in gfx optional

This commit is contained in:
Simon Sapin 2017-10-12 00:59:37 +02:00
parent 5e72173e8c
commit d9a311963f
4 changed files with 12 additions and 4 deletions

View file

@ -3,8 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// For SIMD
#![cfg_attr(feature = "unstable", feature(cfg_target_feature))]
#![cfg_attr(any(target_os = "linux", target_os = "android"), feature(allocator_api))]
#![feature(cfg_target_feature)]
#![deny(unsafe_code)]
@ -53,6 +53,7 @@ extern crate servo_arc;
extern crate servo_geometry;
extern crate servo_url;
#[macro_use] extern crate servo_atoms;
#[cfg(feature = "unstable")]
#[cfg(any(target_feature = "sse2", target_feature = "neon"))]
extern crate simd;
extern crate smallvec;