Skip to content

Commit

Permalink
Always import cc, even if it's useless
Browse files Browse the repository at this point in the history
This is required for `build.rs`, even if it returns right away
because the pure rust versions will be compiled.

Ideally, we should not import cc at least if `pure-rust` is defined,
but `cargo` doesn't seem to have any ways to do that, and `#[cfg]`
macros wouldn't work in `build.rs` anyway.
  • Loading branch information
jedisct1 committed Dec 6, 2023
1 parent 8978114 commit ec3aedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"
[target."cfg(not(any(all(target_arch = \"aarch64\", target_feature = \"aes\"),all(target_arch = \"x86_64\", target_feature = \"aes\"),all(target_arch = \"x86\", target_feature = \"aes\"))))".dependencies.softaes]
version = "0.1"

[target.'cfg(not(pure_rust))'.build-dependencies]
[build-dependencies]
cc = "1.0.83"

[dev-dependencies]
Expand Down

0 comments on commit ec3aedd

Please sign in to comment.