diff --git a/unified/extractor/BUILD.bazel b/unified/extractor/BUILD.bazel index 80ca1c0057b..0ef7f1b68b0 100644 --- a/unified/extractor/BUILD.bazel +++ b/unified/extractor/BUILD.bazel @@ -7,6 +7,7 @@ codeql_rust_binary( name = "extractor", srcs = glob(["src/**/*.rs"]), aliases = aliases(), + compile_data = ["ast_types.yml"], proc_macro_deps = all_crate_deps( proc_macro = True, ), diff --git a/unified/extractor/tree-sitter-swift/bindings/rust/build.rs b/unified/extractor/tree-sitter-swift/bindings/rust/build.rs index 6b939358ed4..2dd899ea521 100644 --- a/unified/extractor/tree-sitter-swift/bindings/rust/build.rs +++ b/unified/extractor/tree-sitter-swift/bindings/rust/build.rs @@ -16,7 +16,9 @@ fn main() { Some(&grammar_js), tree_sitter_generate::ABI_VERSION_MAX, None, - None, + // Evaluate grammar.js with the embedded QuickJS runtime instead of + // spawning `node`, which isn't available inside Bazel's sandbox. + Some("native"), true, tree_sitter_generate::OptLevel::default(), )