Skip to content

Commit

Permalink
Allow disabling cc's ability to run commands via the `CC_FORCE_DISA…
Browse files Browse the repository at this point in the history
…BLE` environment variable
  • Loading branch information
thomcc committed Oct 2, 2024
1 parent 7de85cc commit fdfcbc7
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 73 deletions.
2 changes: 2 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
disallowed-methods = [
{ path = "std::env::var_os", reason = "Please use Build::getenv" },
{ path = "std::env::var", reason = "Please use Build::getenv" },
{ path = "std::process::Command::new", reason = "Please use crate::command_new()" },
{ path = "cc::tool::Tool::to_command", reason = "Bypasses `is_disabled()` check. Use try_to_command() instead." },
]
doc-valid-idents = ["AppleClang", "OpenBSD", ".."]
Loading

0 comments on commit fdfcbc7

Please sign in to comment.