Skip to content

Commit

Permalink
Bazel: stub internal repo parts needed for building rust binaries
Browse files Browse the repository at this point in the history
This is another shot at #17382,
using a different and more lightweight approach.

This allows building the ruby and python (and in the future also rust)
packs from within the codeql repository. This will:
* skip defining the glibc symbols checking, which only makes sense when
  building the release from the internal repository
* stub out our `universal_binary` rule, which we only need when building
  the release.
  • Loading branch information
Paolo Tranquilli committed Sep 5, 2024
1 parent 959715a commit 913a926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/bazel/rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def codeql_rust_binary(
visibility = None,
symbols_test = True,
**kwargs):
rust_label_name = name + "_single_arch"
rust_label_name = "single_arch/" + name
universal_binary(
name = name,
dep = ":" + rust_label_name,
Expand Down

0 comments on commit 913a926

Please sign in to comment.