Skip to content

Commit 8965b06

Browse files
author
Jorge Aparicio
committed
use rlibc crate instead
1 parent 5abf6b5 commit 8965b06

File tree

3 files changed

+9
-62
lines changed

3 files changed

+9
-62
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ authors = ["Jorge Aparicio <[email protected]>"]
33
name = "rustc_builtins"
44
version = "0.1.0"
55

6+
[dependencies]
7+
rlibc = { git = "https://github.com/alexcrichton/rlibc", optional = true }
8+
69
[dev-dependencies]
710
quickcheck = "0.3.1"
11+
12+
[features]
13+
default = ["rlibc/weak"]

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ extern crate quickcheck;
1818
#[cfg(test)]
1919
extern crate core;
2020

21+
#[cfg(all(not(windows), not(target_os = "macos")))]
22+
extern crate rlibc;
23+
2124
#[cfg(target_arch = "arm")]
2225
pub mod arm;
2326

2427
pub mod udiv;
25-
#[cfg(all(not(windows), not(target_os = "macos")))]
26-
pub mod mem;
2728
pub mod mul;
2829
pub mod shift;
2930

src/mem.rs

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)