Skip to content

Commit 07a74eb

Browse files
committed
fix: disable the missing llvm 14.0.1 for ubuntu 18.0.1 x86
1 parent 154369f commit 07a74eb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/llvm/llvm.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const UBUNTU_RC: Map<string, string> = new Map()
122122
*
123123
* https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1
124124
*/
125-
const UBUNTU: { [key: string]: string } = {
125+
const UBUNTU_SUFFIX_MAP: { [key: string]: string } = {
126126
"3.5.0": "-ubuntu-14.04",
127127
"3.5.1": "",
128128
"3.5.2": "-ubuntu-14.04",
@@ -157,11 +157,11 @@ const UBUNTU: { [key: string]: string } = {
157157
"13.0.0": "-ubuntu-20.04",
158158
"13.0.1": "-ubuntu-18.04",
159159
"14.0.0": "-ubuntu-18.04",
160-
"14.0.1": "-ubuntu-18.04",
160+
// "14.0.1": "-ubuntu-18.04", // only available for powerpc64le
161161
}
162162

163163
/** The latest supported LLVM version for the Linux (Ubuntu) platform. */
164-
const MAX_UBUNTU: string = "14.0.1"
164+
const MAX_UBUNTU: string = "14.0.0"
165165

166166
/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */
167167
function getLinuxUrl(versionGiven: string): string {
@@ -176,11 +176,11 @@ function getLinuxUrl(versionGiven: string): string {
176176
// ubuntu-version is specified
177177
if (version.includes("ubuntu")) {
178178
ubuntu = version
179-
} else if (version !== "" && version in UBUNTU) {
180-
ubuntu = UBUNTU[version]
179+
} else if (version !== "" && version in UBUNTU_SUFFIX_MAP) {
180+
ubuntu = UBUNTU_SUFFIX_MAP[version]
181181
} else {
182182
// default to the maximum version
183-
ubuntu = UBUNTU[MAX_UBUNTU]
183+
ubuntu = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]
184184
}
185185

186186
const prefix = "clang+llvm-"

0 commit comments

Comments
 (0)