Skip to content

Commit c1b19fb

Browse files
authored
Merge pull request #22373 from github/unified/disable-arm64-build
unified: Disable build on linux-arm64
2 parents 152c73a + bb6b3b9 commit c1b19fb

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

unified/BUILD.bazel

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup")
2+
load("//misc/bazel:os.bzl", "codeql_platform_select")
23
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files")
3-
load("//misc/bazel:utils.bzl", "select_os")
44

55
package(default_visibility = ["//visibility:public"])
66

@@ -41,12 +41,14 @@ codeql_pkg_files(
4141

4242
codeql_pkg_files(
4343
name = "extractor-arch",
44-
exes = select_os(
45-
posix = ["//unified/extractor"],
46-
windows = ["//unified/extractor-unsupported-os:extractor"],
47-
) + select_os(
48-
linux = ["//unified/swift-syntax-rs:swift_runtime_libs"],
49-
otherwise = [],
44+
exes = codeql_platform_select(
45+
linux64 = [
46+
"//unified/extractor",
47+
"//unified/swift-syntax-rs:swift_runtime_libs",
48+
],
49+
linux_arm64 = ["//unified/extractor-unsupported-os:extractor"],
50+
osx64 = ["//unified/extractor"],
51+
win64 = ["//unified/extractor-unsupported-os:extractor"],
5052
),
5153
prefix = "tools/{CODEQL_PLATFORM}",
5254
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fn main() {
2-
eprintln!("Unsupported OS. Extraction is not currently supported on Windows.");
2+
eprintln!("Unsupported OS. Extraction is not currently supported on this platform.");
33
std::process::exit(1);
44
}

0 commit comments

Comments
 (0)