mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Swift: Rename incompatible OS diagnostic to clarify that it's for the autobuilder.
This commit is contained in:
@@ -59,8 +59,8 @@ pkg_runfiles(
|
||||
)
|
||||
|
||||
pkg_runfiles(
|
||||
name = "incompatible-os",
|
||||
srcs = ["//swift/tools/autobuilder-diagnostics:incompatible-os"],
|
||||
name = "diagnostics",
|
||||
srcs = ["//swift/tools/diagnostics:autobuilder-incompatible-os"],
|
||||
prefix = "tools/" + codeql_platform,
|
||||
)
|
||||
|
||||
@@ -89,7 +89,7 @@ pkg_filegroup(
|
||||
":xcode-autobuilder",
|
||||
],
|
||||
"//conditions:default": [
|
||||
":incompatible-os",
|
||||
":diagnostics",
|
||||
],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -122,7 +122,7 @@ generate_cmake(
|
||||
"//swift/extractor:extractor.real",
|
||||
"//swift/logging/tests/assertion-diagnostics:assert-false",
|
||||
] + select({
|
||||
"@platforms//os:linux": ["//swift/tools/autobuilder-diagnostics:incompatible-os"],
|
||||
"@platforms//os:linux": ["//swift/tools/diagnostics:autobuilder-incompatible-os"],
|
||||
"@platforms//os:macos": ["//swift/xcode-autobuilder"],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/xcode-autobuilder"
|
||||
else
|
||||
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/incompatible-os"
|
||||
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/autobuilder-incompatible-os"
|
||||
fi
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
load("//swift:rules.bzl", "swift_cc_binary")
|
||||
|
||||
swift_cc_binary(
|
||||
name = "incompatible-os",
|
||||
srcs = ["IncompatibleOs.cpp"],
|
||||
name = "autobuilder-incompatible-os",
|
||||
srcs = ["AutobuilderIncompatibleOs.cpp"],
|
||||
# No restrictions (Windows allowed)
|
||||
target_compatible_with = [],
|
||||
visibility = ["//swift:__subpackages__"],
|
||||
deps = [
|
||||
"//swift/logging",
|
||||
],
|
||||
# No restrictions (Windows allowed)
|
||||
target_compatible_with = [],
|
||||
)
|
||||
Reference in New Issue
Block a user