Skip to content

Commit 7b829cb

Browse files
committed
fix: increase the gain of win64
1 parent 33a4572 commit 7b829cb

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
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

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ async function getAssetKeywords(platform: string, arch: string) {
8383

8484
switch (platform) {
8585
case "win32": {
86+
optionalKeywords.push("windows", "Windows")
8687
if (x86_64.includes(arch)) {
87-
optionalKeywords.push("win64", "x86_64", "X64")
88+
// prefer win64 keyword over x86_64 or x64
89+
optionalKeywords.push("win64", "win64", "win64", "x86_64", "X64")
8890
// TODO fallback to win32 if win64 is not available (e.g. for LLVM 3.6.2 and older)
8991
} else if (x86.includes(arch)) {
9092
keywords.push("win32")
@@ -94,7 +96,6 @@ async function getAssetKeywords(platform: string, arch: string) {
9496
info(`Using arch ${arch} for LLVM`)
9597
keywords.push(arch)
9698
}
97-
optionalKeywords.push("windows", "Windows")
9899
break
99100
}
100101
case "linux": {

0 commit comments

Comments
 (0)