Skip to content

Commit 28a7fca

Browse files
authored
Merge pull request github#17387 from github/redsun82/bazel
Bazel: stub internal repo parts needed for building rust binaries
2 parents 5950af3 + 7c80b33 commit 28a7fca

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

misc/bazel/rust.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def codeql_rust_binary(
88
visibility = None,
99
symbols_test = True,
1010
**kwargs):
11-
rust_label_name = name + "_single_arch"
11+
rust_label_name = "single_arch/" + name
1212
universal_binary(
1313
name = name,
1414
dep = ":" + rust_label_name,

misc/bazel/semmle_code_stub/buildutils-internal/BUILD.bazel

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This check only makes sense when building from the internal repository
2+
3+
def glibc_symbols_check(**kwargs):
4+
pass
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# we only need to build universal binaries when building releases from the internal repo
2+
# when building from the codeql repo, we can stub this rule with an alias
3+
4+
def universal_binary(*, name, dep, **kwargs):
5+
native.alias(name = name, actual = dep, **kwargs)

0 commit comments

Comments
 (0)