Browse Source

Ensure that the sysroot uses its own libc

pull/10/head
Fenrir 7 years ago committed by FenrirWolf
parent
commit
d1475d0d2c
  1. 5
      ctr-std/Cargo.toml
  2. 3
      ctru-sys/Cargo.toml
  3. 2
      ctru-sys/src/lib.rs

5
ctr-std/Cargo.toml

@ -9,12 +9,9 @@ git = "https://github.com/rust-lang-nursery/compiler-builtins"
[dependencies.alloc_system] [dependencies.alloc_system]
git = "https://github.com/rust3ds/alloc_system3ds" git = "https://github.com/rust3ds/alloc_system3ds"
[dependencies.libc]
version = "0.2"
default-features = false
[dependencies.ctru-sys] [dependencies.ctru-sys]
path = "../ctru-sys" path = "../ctru-sys"
default-features = false
features = ["stdbuild"] features = ["stdbuild"]
[features] [features]

3
ctru-sys/Cargo.toml

@ -7,8 +7,11 @@ license = "https://en.wikipedia.org/wiki/Zlib_License"
[dependencies.libc] [dependencies.libc]
version = "0.2" version = "0.2"
default-features = false default-features = false
optional = true
[features] [features]
default = ["libc"]
# This is a dummy feature that only exists to work around a Xargo issue. # This is a dummy feature that only exists to work around a Xargo issue.
# User code should not enable it. # User code should not enable it.
stdbuild = [] stdbuild = []

2
ctru-sys/src/lib.rs

@ -7,6 +7,8 @@
#![no_std] #![no_std]
#![cfg_attr(feature = "stdbuild", feature(libc))]
extern crate libc; extern crate libc;
include!("bindings.rs"); include!("bindings.rs");

Loading…
Cancel
Save