Skip to content

Commit 2a1ebe9

Browse files
committed
Disable tidy license checker for cg_gcc until it's deps are vendored
1 parent 8c61044 commit 2a1ebe9

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/tools/tidy/src/deps.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub(crate) const WORKSPACES: &[(&str, ExceptionList, Option<(&[&str], &[&str])>)
5252
Some((&["rustc_codegen_cranelift"], PERMITTED_CRANELIFT_DEPENDENCIES)),
5353
),
5454
// tidy-alphabetical-start
55-
("compiler/rustc_codegen_gcc", EXCEPTIONS_GCC, None),
55+
//("compiler/rustc_codegen_gcc", EXCEPTIONS_GCC, None), // FIXME uncomment once all deps are vendored
5656
//("library/backtrace", &[], None), // FIXME uncomment once rust-lang/backtrace#562 lands
5757
//("library/portable-simd", &[], None), // FIXME uncomment once rust-lang/portable-simd#363 has been synced back to the rust repo
5858
//("library/stdarch", EXCEPTIONS_STDARCH, None), // FIXME uncomment once rust-lang/stdarch#1462 lands
@@ -158,12 +158,15 @@ const EXCEPTIONS_CRANELIFT: ExceptionList = &[
158158
// tidy-alphabetical-end
159159
];
160160

161+
// FIXME uncomment once all deps are vendored
162+
/*
161163
const EXCEPTIONS_GCC: ExceptionList = &[
162164
// tidy-alphabetical-start
163165
("gccjit", "GPL-3.0"),
164166
("gccjit_sys", "GPL-3.0"),
165167
// tidy-alphabetical-end
166168
];
169+
*/
167170

168171
const EXCEPTIONS_BOOTSTRAP: ExceptionList = &[
169172
("ryu", "Apache-2.0 OR BSL-1.0"), // through serde. BSL is not acceptble, but we use it under Apache-2.0

src/tools/tidy/src/extdeps.rs

-9
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ pub fn check(root: &Path, bad: &mut bool) {
3434

3535
// Ensure source is allowed.
3636
if !ALLOWED_SOURCES.contains(&&*source) {
37-
if workspace == "compiler/rustc_codegen_gcc" {
38-
// FIXME stop using git dependencies for rustc_codegen_gcc?
39-
if source
40-
== "\"git+https://github.com/antoyo/gccjit.rs#d6e52626cfc6f487094a5d5ac66302baf3439984\""
41-
{
42-
continue;
43-
}
44-
}
45-
4637
tidy_error!(bad, "invalid source: {}", source);
4738
}
4839
}

0 commit comments

Comments
 (0)