diff --git a/frozen-abi/Cargo.toml b/frozen-abi/Cargo.toml index 49f15ebf0f..bed773d08c 100644 --- a/frozen-abi/Cargo.toml +++ b/frozen-abi/Cargo.toml @@ -28,7 +28,6 @@ ahash = { workspace = true } blake3 = { workspace = true, features = ["digest", "traits-preview"] } block-buffer = { workspace = true } byteorder = { workspace = true, features = ["i128"] } -cc = { workspace = true, features = ["jobserver", "parallel"] } either = { workspace = true, features = ["use_std"] } generic-array = { workspace = true, features = ["serde", "more_lengths"] } getrandom = { workspace = true, features = ["dummy"] } @@ -38,6 +37,9 @@ once_cell = { workspace = true, features = ["alloc", "race"] } rand_core = { workspace = true, features = ["std"] } subtle = { workspace = true } +[target.'cfg(any(unix, windows))'.dependencies] +cc = { workspace = true, features = ["jobserver", "parallel"] } + [target.'cfg(not(target_os = "solana"))'.dev-dependencies] solana-logger = { workspace = true } diff --git a/sdk/program/Cargo.toml b/sdk/program/Cargo.toml index 3f2458ec1a..7ddb537df3 100644 --- a/sdk/program/Cargo.toml +++ b/sdk/program/Cargo.toml @@ -83,9 +83,11 @@ serde_json = { workspace = true } static_assertions = { workspace = true } [build-dependencies] -cc = { workspace = true, features = ["jobserver", "parallel"] } rustc_version = { workspace = true } +[target.'cfg(any(unix, windows))'.build-dependencies] +cc = { workspace = true, features = ["jobserver", "parallel"] } + [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"]