mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Make usage of core_intrinsics optional
This commit is contained in:
parent
bffec1c1a1
commit
27239e1123
5 changed files with 14 additions and 13 deletions
|
@ -15,7 +15,7 @@
|
|||
//!
|
||||
//! [glutin]: https://github.com/tomaka/glutin
|
||||
|
||||
#![feature(core_intrinsics)]
|
||||
#![cfg_attr(feature = "unstable", feature(core_intrinsics))]
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
extern crate android_injected_glue;
|
||||
|
@ -26,7 +26,7 @@ extern crate glutin_app as app;
|
|||
extern crate log;
|
||||
// The Servo engine
|
||||
extern crate servo;
|
||||
#[cfg(not(target_os = "android"))]
|
||||
#[cfg(all(feature = "unstable", not(target_os = "android")))]
|
||||
#[macro_use]
|
||||
extern crate sig;
|
||||
|
||||
|
@ -57,7 +57,7 @@ pub mod platform {
|
|||
pub fn deinit() {}
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "android"))]
|
||||
#[cfg(all(feature = "unstable", not(target_os = "android")))]
|
||||
fn install_crash_handler() {
|
||||
use backtrace::Backtrace;
|
||||
use sig::ffi::Sig;
|
||||
|
@ -83,7 +83,7 @@ fn install_crash_handler() {
|
|||
signal!(Sig::BUS, handler); // handle invalid memory access
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[cfg(any(not(feature = "unstable"), target_os = "android"))]
|
||||
fn install_crash_handler() {}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue