Skip to content

Commit 2bb3101

Browse files
committed
Swift: Rename incompatible OS diagnostic to clarify that it's for the autobuilder.
1 parent bc48968 commit 2bb3101

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

swift/BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ pkg_runfiles(
5959
)
6060

6161
pkg_runfiles(
62-
name = "incompatible-os",
63-
srcs = ["//swift/tools/autobuilder-diagnostics:incompatible-os"],
62+
name = "diagnostics",
63+
srcs = ["//swift/tools/diagnostics:autobuilder-incompatible-os"],
6464
prefix = "tools/" + codeql_platform,
6565
)
6666

@@ -89,7 +89,7 @@ pkg_filegroup(
8989
":xcode-autobuilder",
9090
],
9191
"//conditions:default": [
92-
":incompatible-os",
92+
":diagnostics",
9393
],
9494
}),
9595
visibility = ["//visibility:public"],
@@ -122,7 +122,7 @@ generate_cmake(
122122
"//swift/extractor:extractor.real",
123123
"//swift/logging/tests/assertion-diagnostics:assert-false",
124124
] + select({
125-
"@platforms//os:linux": ["//swift/tools/autobuilder-diagnostics:incompatible-os"],
125+
"@platforms//os:linux": ["//swift/tools/diagnostics:autobuilder-incompatible-os"],
126126
"@platforms//os:macos": ["//swift/xcode-autobuilder"],
127127
}),
128128
visibility = ["//visibility:public"],

swift/tools/autobuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
if [[ "$OSTYPE" == "darwin"* ]]; then
44
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/xcode-autobuilder"
55
else
6-
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/incompatible-os"
6+
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/autobuilder-incompatible-os"
77
fi
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
load("//swift:rules.bzl", "swift_cc_binary")
22

33
swift_cc_binary(
4-
name = "incompatible-os",
5-
srcs = ["IncompatibleOs.cpp"],
4+
name = "autobuilder-incompatible-os",
5+
srcs = ["AutobuilderIncompatibleOs.cpp"],
6+
# No restrictions (Windows allowed)
7+
target_compatible_with = [],
68
visibility = ["//swift:__subpackages__"],
79
deps = [
810
"//swift/logging",
911
],
10-
# No restrictions (Windows allowed)
11-
target_compatible_with = [],
1212
)

0 commit comments

Comments
 (0)