Files
rust/library/compiler-builtins/src/lib.rs

35 lines
678 B
Rust
Raw Normal View History

2016-08-07 15:58:05 -05:00
#![feature(asm)]
2016-08-15 21:08:04 -05:00
#![feature(core_intrinsics)]
#![feature(linkage)]
2016-08-07 15:58:05 -05:00
#![feature(naked_functions)]
#![cfg_attr(not(test), no_std)]
2016-08-13 12:16:52 -05:00
#![no_builtins]
2016-08-07 15:58:05 -05:00
// TODO(rust-lang/rust#35021) uncomment when that PR lands
// #![feature(rustc_builtins)]
2016-08-13 09:51:54 +01:00
// We disable #[no_mangle] for tests so that we can verify the test results
// against the native compiler-rt implementations of the builtins.
2016-08-10 19:12:37 -05:00
#[cfg(test)]
#[macro_use]
extern crate quickcheck;
2016-08-07 15:58:05 -05:00
#[cfg(test)]
extern crate core;
2016-08-14 21:59:48 -05:00
#[cfg(all(not(windows), not(target_os = "macos")))]
extern crate rlibc;
pub mod int;
2016-08-17 15:51:37 -05:00
pub mod float;
2016-08-07 15:58:05 -05:00
#[cfg(target_arch = "arm")]
pub mod arm;
2016-08-16 17:46:46 -05:00
#[cfg(target_arch = "x86_64")]
pub mod x86_64;
#[cfg(test)]
mod qc;