Skip to content

Commit

Permalink
cfg libc tweak, dont use bridge_types when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sstanfield committed Jan 12, 2024
1 parent a964792 commit 9ae90cc
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
3 changes: 0 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion bridge_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ syn = { version = "1.0.95", features = ["full"] }
quote = "1.0.18"
static_assertions = "1.1.0"
bridge_types = { workspace = true }
trybuild = "1.0.85"
slvm = { path = "../vm" }

[dev-dependencies]
trybuild = "1.0.85"
1 change: 0 additions & 1 deletion compile_state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ edition = "2021"

[dependencies]
slvm = { path = "../vm" }
bridge_types = { workspace = true }
1 change: 0 additions & 1 deletion compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ unicode_reader = "1"
slvm = { path = "../vm" }
builtins = { path = "../builtins" }
compile_state = { path = "../compile_state" }
bridge_types = { workspace = true }

[build-dependencies]
chrono = "0.4"
4 changes: 2 additions & 2 deletions shell/src/platform/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ use nix::unistd::{self, Uid};
mod umask;

// macos does not define __rlimit_resource_t...
#[cfg(target_os = "macos")]
#[cfg(not(any(target_env = "gnu", target_env = "uclibc")))]
pub type RlimitResource = nix::libc::c_int;
#[cfg(not(target_os = "macos"))]
#[cfg(any(target_env = "gnu", target_env = "uclibc"))]
pub type RlimitResource = nix::libc::__rlimit_resource_t;

pub struct Sys {}
Expand Down
1 change: 0 additions & 1 deletion vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ nohelmet = []

[dependencies]
unicode-segmentation = "1.10.1"
bridge_types = { workspace = true }

0 comments on commit 9ae90cc

Please sign in to comment.