Skip to content

Commit f400a5f

Browse files
committed
Swift extractor: Fix Linux build
1 parent 2cc574d commit f400a5f

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

swift/tools/diagnostics/AutobuilderIncompatibleOs.cpp

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@
99
const std::string_view codeql::programName = "autobuilder";
1010
const std::string_view codeql::extractorName = "swift";
1111

12-
constexpr codeql::Diagnostic incompatibleOs = codeql::Diagnostic(
13-
.id="incompatible-os",
14-
.name="Incompatible operating system (expected macOS)",
15-
.action="[Change the Actions runner][1] to run on macOS.\n"
16-
"\n"
17-
"You may be able to run analysis on Linux by setting up a [manual build command][2].\n"
18-
"\n"
19-
"[1]: "
20-
"https://docs.github.com/en/actions/using-workflows/"
21-
"workflow-syntax-for-github-actions#jobsjob_idruns-on\n"
22-
"[2]: "
23-
"https://docs.github.com/en/enterprise-server/code-security/code-scanning/"
24-
"automatically-scanning-your-code-for-vulnerabilities-and-errors/"
25-
"configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-"
26-
"compiled-"
27-
"language");
12+
constexpr codeql::Diagnostic incompatibleOs = codeql::Diagnostic{
13+
.id = "incompatible-os",
14+
.name = "Incompatible operating system (expected macOS)",
15+
.action =
16+
"[Change the Actions runner][1] to run on macOS.\n"
17+
"\n"
18+
"You may be able to run analysis on Linux by setting up a [manual build command][2].\n"
19+
"\n"
20+
"[1]: "
21+
"https://docs.github.com/en/actions/using-workflows/"
22+
"workflow-syntax-for-github-actions#jobsjob_idruns-on\n"
23+
"[2]: "
24+
"https://docs.github.com/en/enterprise-server/code-security/code-scanning/"
25+
"automatically-scanning-your-code-for-vulnerabilities-and-errors/"
26+
"configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-"
27+
"compiled-"
28+
"language"};
2829

2930
static codeql::Logger& logger() {
3031
static codeql::Logger ret{"main"};

0 commit comments

Comments
 (0)