Skip to content

Commit d98f950

Browse files
committed
fix: make LLVM platform keywords optional
1 parent 95adc35 commit d98f950

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Diff for: dist/legacy/setup-cpp.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/legacy/setup-cpp.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/modern/setup-cpp.mjs

+1-1
Large diffs are not rendered by default.

Diff for: dist/modern/setup-cpp.mjs.map

+1-1
Large diffs are not rendered by default.

Diff for: src/llvm/llvm_url.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ async function getAssetKeywords(platform: string, arch: string) {
8383

8484
switch (platform) {
8585
case "win32": {
86-
keywords.push("windows", "Windows")
86+
optionalKeywords.push("windows", "Windows")
8787
if (x86_64.includes(arch)) {
88-
keywords.push("win64", "x86_64", "X64")
88+
optionalKeywords.push("win64", "x86_64", "X64")
8989
// TODO fallback to win32 if win64 is not available (e.g. for LLVM 3.6.2 and older)
9090
} else if (x86.includes(arch)) {
9191
keywords.push("win32")
@@ -98,7 +98,7 @@ async function getAssetKeywords(platform: string, arch: string) {
9898
break
9999
}
100100
case "linux": {
101-
keywords.push("linux", "Linux")
101+
optionalKeywords.push("linux", "Linux")
102102

103103
if (isUbuntu()) {
104104
optionalKeywords.push("ubuntu")
@@ -116,7 +116,7 @@ async function getAssetKeywords(platform: string, arch: string) {
116116
}
117117

118118
if (x86_64.includes(arch)) {
119-
keywords.push("x86_64", "X64")
119+
optionalKeywords.push("x86_64", "X64")
120120
} else if (x86.includes(arch)) {
121121
keywords.push("x86")
122122
} else if (arm64.includes(arch)) {
@@ -135,7 +135,7 @@ async function getAssetKeywords(platform: string, arch: string) {
135135
break
136136
}
137137
case "darwin": {
138-
keywords.push("apple", "macos", "macOS")
138+
optionalKeywords.push("apple", "macos", "macOS")
139139

140140
if (x86_64.includes(arch)) {
141141
keywords.push("x86_64", "X64")

0 commit comments

Comments
 (0)