Skip to content

Commit

Permalink
Merge pull request #17387 from github/redsun82/bazel
Browse files Browse the repository at this point in the history
Bazel: stub internal repo parts needed for building rust binaries
  • Loading branch information
redsun82 authored Sep 5, 2024
2 parents 5950af3 + 7c80b33 commit 28a7fca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions 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
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This check only makes sense when building from the internal repository

def glibc_symbols_check(**kwargs):
pass
5 changes: 5 additions & 0 deletions misc/bazel/semmle_code_stub/buildutils-internal/lipo.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# we only need to build universal binaries when building releases from the internal repo
# when building from the codeql repo, we can stub this rule with an alias

def universal_binary(*, name, dep, **kwargs):
native.alias(name = name, actual = dep, **kwargs)

0 comments on commit 28a7fca

Please sign in to comment.