Skip to content

Commit f3ed54e

Browse files
committed
Swift: only run Xcode autobuilder on macOS
1 parent 3040837 commit f3ed54e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

swift/BUILD.bazel

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@ pkg_filegroup(
8484
srcs = [
8585
":extractor",
8686
":swift-test-sdk-arch",
87-
":xcode-autobuilder",
88-
],
87+
] + select({
88+
"@platforms//os:linux": [],
89+
"@platforms//os:macos": [
90+
":xcode-autobuilder"
91+
],
92+
}),
8993
visibility = ["//visibility:public"],
9094
)
9195

swift/tools/autobuild.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/bash
22

3-
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/xcode-autobuilder"
3+
if [[ "$OSTYPE" == "darwin"* ]]; then
4+
exec "${CODEQL_EXTRACTOR_SWIFT_ROOT}/tools/${CODEQL_PLATFORM}/xcode-autobuilder"
5+
else
6+
echo "Not implemented yet"
7+
exit 1
8+
fi

0 commit comments

Comments
 (0)