]> git.lizzy.rs Git - rust.git/blob - src/rustc/libc_shim/Cargo.toml
Inject the `compiler_builtins` crate whenever the `core` crate is injected
[rust.git] / src / rustc / libc_shim / Cargo.toml
1 [package]
2 name = "libc"
3 version = "0.0.0"
4 authors = ["The Rust Project Developers"]
5
6 [lib]
7 name = "libc"
8 path = "../../liblibc/src/lib.rs"
9 test = false
10 bench = false
11 doc = false
12
13 [dependencies]
14 # Specify the path to libcore; at the time of writing, removing this shim in
15 # favor of using libc from git results in a compilation failure:
16 #
17 # Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
18 #    Compiling libc v0.0.0 (file:///Users/tamird/src/rust/src/rustc/libc_shim)
19 # error[E0463]: can't find crate for `core`
20 #
21 # error: aborting due to previous error
22 #
23 # error: Could not compile `libc`.
24 #
25 # Caused by:
26 #   process didn't exit successfully: `/Users/tamird/src/rust/build/bootstrap/debug/rustc --crate-name libc src/rustc/libc_shim/../../liblibc/src/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 --cfg feature="default" --cfg feature="no_std" --cfg feature="stdbuild" -C metadata=d758f87058112d7d -C extra-filename=-d758f87058112d7d --out-dir /Users/tamird/src/rust/build/x86_64-apple-darwin/stage0-std/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -L dependency=/Users/tamird/src/rust/build/x86_64-apple-darwin/stage0-std/x86_64-apple-darwin/release/deps -L dependency=/Users/tamird/src/rust/build/x86_64-apple-darwin/stage0-std/release/deps` (exit code: 101)
27 # thread 'main' panicked at 'command did not execute successfully: "/Users/tamird/src/rust/build/x86_64-apple-darwin/stage0/bin/cargo" "build" "-j" "4" "--target" "x86_64-apple-darwin" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/Users/tamird/src/rust/src/libstd/Cargo.toml" "--message-format" "json"
28 # expected success, got: exit code: 101', src/bootstrap/compile.rs:883:8
29 #
30 # See https://github.com/rust-lang/rfcs/pull/1133.
31 core = { path = "../../libcore" }
32 compiler_builtins = { path = "../compiler_builtins_shim" }
33
34
35 [features]
36 # Certain parts of libc are conditionally compiled differently than when used
37 # outside rustc. See https://github.com/rust-lang/libc/search?l=Rust&q=stdbuild&type=&utf8=%E2%9C%93.
38 stdbuild = []
39 default = ["stdbuild"]