Skip to content

Commit 45e6488

Browse files
authored
Merge pull request #58 from aminya/gcc-alternatives [skip ci]
2 parents d35f678 + 91f233c commit 45e6488

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

dist/setup_cpp.js

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

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/gcc/gcc.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ async function activateGcc(version: string, binDir: string) {
100100
if (process.platform === "linux") {
101101
await updateAptAlternatives("cc", `${binDir}/gcc-${majorVersion}`)
102102
await updateAptAlternatives("cxx", `${binDir}/g++-${majorVersion}`)
103+
await updateAptAlternatives("gcc", `${binDir}/gcc-${majorVersion}`)
104+
await updateAptAlternatives("g++", `${binDir}/g++-${majorVersion}`)
103105
}
104106
} else {
105107
addEnv("CC", `${binDir}/gcc-${version}`)
@@ -108,6 +110,8 @@ async function activateGcc(version: string, binDir: string) {
108110
if (process.platform === "linux") {
109111
await updateAptAlternatives("cc", `${binDir}/gcc-${version}`)
110112
await updateAptAlternatives("cxx", `${binDir}/g++-${version}`)
113+
await updateAptAlternatives("gcc", `${binDir}/gcc-${version}`)
114+
await updateAptAlternatives("g++", `${binDir}/g++-${version}`)
111115
}
112116
}
113117
}

0 commit comments

Comments
 (0)