Skip to content

Commit d8ae77d

Browse files
committed
Allow disabling cc's ability to run commands via the CC_FORCE_DISABLE environment variable
1 parent 7de85cc commit d8ae77d

File tree

4 files changed

+168
-73
lines changed

4 files changed

+168
-73
lines changed

clippy.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
disallowed-methods = [
22
{ path = "std::env::var_os", reason = "Please use Build::getenv" },
33
{ path = "std::env::var", reason = "Please use Build::getenv" },
4+
{ path = "std::process::Command::new", reason = "Please use crate::command_new()" },
5+
{ path = "cc::tool::Tool::to_command", reason = "Bypasses `is_disabled()` check. Use try_to_command() instead." },
46
]
57
doc-valid-idents = ["AppleClang", "OpenBSD", ".."]

0 commit comments

Comments
 (0)