File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ parallel = ["dep:libc", "dep:jobserver"]
33
33
# This is a placeholder feature for people who incorrectly used `cc` with `features = ["jobserver"]`
34
34
# so that they aren't broken. This has never enabled `parallel`, so we won't do that.
35
35
jobserver = []
36
- # Visual Studio doesn't have clang-cl (Clang/LLVM) installed by default as it's an optional module.
37
- # While GitHub Actions runners have it installed, it might cause some failing tests if you don't
38
- # have it. Run the tests with "--features disable-clang-cl-tests" if you want to disable related tests.
39
- disable-clang-cl-tests = []
40
36
41
37
[dev-dependencies ]
42
38
tempfile = " 3"
@@ -51,3 +47,6 @@ members = [
51
47
52
48
[patch .crates-io ]
53
49
cc = { path = " ." }
50
+
51
+ [lints .rust ]
52
+ unexpected_cfgs = { level = " allow" , check-cfg = [' cfg(disable_clang_cl_tests)' ] }
Original file line number Diff line number Diff line change @@ -1202,7 +1202,7 @@ mod impl_ {
1202
1202
}
1203
1203
1204
1204
#[ test]
1205
- #[ cfg( not( feature = "disable-clang-cl-tests" ) ) ]
1205
+ #[ cfg( not( disable_clang_cl_tests ) ) ]
1206
1206
fn test_find_llvm_tools ( ) {
1207
1207
// Import StdEnvGetter from the parent module
1208
1208
use crate :: windows:: find_tools:: StdEnvGetter ;
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ fn clang_android() {
853
853
}
854
854
855
855
#[ cfg( windows) ]
856
- #[ cfg( not( feature = "disable-clang-cl-tests" ) ) ]
856
+ #[ cfg( not( disable_clang_cl_tests ) ) ]
857
857
mod msvc_clang_cl_tests {
858
858
use super :: { reset_env, Test } ;
859
859
You can’t perform that action at this time.
0 commit comments