Skip to content
Snippets Groups Projects
Commit 3d592a89 authored by Per Lindgren's avatar Per Lindgren
Browse files

compiler-builtins

parent 8f4fb29f
No related branches found
No related tags found
No related merge requests found
[dependencies.core]
stage = 0
[dependencies.compiler_builtins]
features = ["mem"]
stage = 1
\ No newline at end of file
#![no_std]
#![feature(compiler_builtins_lib)]
#![feature(lang_items)]
extern crate compiler_builtins;
extern crate cstr_core;
extern crate cty;
......@@ -9,17 +11,11 @@ mod ll;
use core::mem;
use cty::{c_int, c_void};
use cty::c_void;
#[doc(hidden)]
pub use cstr_core::CStr;
//extern "C" fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int {
#[no_mangle]
pub fn memcmp(_cx: *const c_void, _ct: *const c_void, _n: usize) -> c_int {
::abort();
}
pub fn abort() -> ! {
unsafe { ll::abort() }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment