mirror of https://github.com/aminya/setup-cpp
fix: do not add xenial toolchain
This commit is contained in:
parent
4366b4c00d
commit
69b7a71f02
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -36,19 +36,11 @@ export async function setupGcc(version: string, _setupDir: string, arch: string)
|
|||
}
|
||||
case "linux": {
|
||||
if (arch === "x64") {
|
||||
setupAptPack("gcc", version, [
|
||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
|
||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
||||
"ppa:ubuntu-toolchain-r/test",
|
||||
])
|
||||
setupAptPack("gcc", version, ["ppa:ubuntu-toolchain-r/test"])
|
||||
binDir = setupAptPack("g++", version, []).binDir
|
||||
} else {
|
||||
info(`Install g++-multilib because gcc for ${arch} was requested`)
|
||||
setupAptPack("gcc-multilib", version, [
|
||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
|
||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
||||
"ppa:ubuntu-toolchain-r/test",
|
||||
])
|
||||
setupAptPack("gcc-multilib", version, ["ppa:ubuntu-toolchain-r/test"])
|
||||
binDir = setupAptPack("g++-multilib", version, []).binDir
|
||||
}
|
||||
break
|
||||
|
@ -58,8 +50,6 @@ export async function setupGcc(version: string, _setupDir: string, arch: string)
|
|||
// case "none": {
|
||||
// if (arch === "arm" || arch === "arm64") {
|
||||
// return setupAptPack("gcc-arm-none-eabi", version, [
|
||||
// "deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
|
||||
// "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
||||
// "ppa:ubuntu-toolchain-r/test",
|
||||
// ])
|
||||
// } else {
|
||||
|
|
Loading…
Reference in New Issue