Skip to content

Commit 2b2613d

Browse files
committed
unified: Make build work in Bazel again
1 parent cacdc46 commit 2b2613d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

unified/extractor/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ codeql_rust_binary(
77
name = "extractor",
88
srcs = glob(["src/**/*.rs"]),
99
aliases = aliases(),
10+
compile_data = ["ast_types.yml"],
1011
proc_macro_deps = all_crate_deps(
1112
proc_macro = True,
1213
),

unified/extractor/tree-sitter-swift/bindings/rust/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ fn main() {
1616
Some(&grammar_js),
1717
tree_sitter_generate::ABI_VERSION_MAX,
1818
None,
19-
None,
19+
// Evaluate grammar.js with the embedded QuickJS runtime instead of
20+
// spawning `node`, which isn't available inside Bazel's sandbox.
21+
Some("native"),
2022
true,
2123
tree_sitter_generate::OptLevel::default(),
2224
)

0 commit comments

Comments
 (0)