Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions unified/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ codeql_pkg_files(

codeql_pkg_files(
name = "extractor-arch",
exes = [
"//unified/extractor",
] + select_os(
exes = select_os(
posix = ["//unified/extractor"],
windows = ["//unified/extractor-unsupported-os:extractor"],
) + select_os(
linux = ["//unified/swift-syntax-rs:swift_runtime_libs"],
otherwise = [],
),
Expand Down
8 changes: 8 additions & 0 deletions unified/extractor-unsupported-os/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
load("//misc/bazel:rust.bzl", "codeql_rust_binary")

codeql_rust_binary(
name = "extractor",
srcs = ["src/main.rs"],
crate_root = "src/main.rs",
visibility = ["//visibility:public"],
)
6 changes: 6 additions & 0 deletions unified/extractor-unsupported-os/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "codeql-extractor-unified-unsupported-os"
description = "Fallback executable for unsupported CodeQL Unified extractor platforms"
version = "0.1.0"
authors = ["GitHub"]
edition = "2024"
4 changes: 4 additions & 0 deletions unified/extractor-unsupported-os/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
println!("Unsupported OS. Extraction is not currently supported on Windows.");
Comment thread
Copilot marked this conversation as resolved.
Outdated
std::process::exit(1);
}
Loading