Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A library for types and bindings to native C functions often found in libc or
other common platform libraries.
"""
include = ["Cargo.toml", "rust/src/liblibc/*"]
build = "build.rs"

[features]
default = ["cargo-build"]
Expand All @@ -21,3 +22,5 @@ cargo-build = []
[lib]
name = "libc"
path = "rust/src/liblibc/lib.rs"


7 changes: 7 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use std::env;

fn main() {
if let Ok(path) = env::var("LIBC_PATH") {
println!("cargo:rustc-link-search={}", path);
}
}