fix: use default gcc for LLVM · aminya/setup-cpp@0f7243c · GitHub
Skip to content

Commit 0f7243c

Browse files
committed
fix: use default gcc for LLVM
1 parent ebcdf13 commit 0f7243c

8 files changed

Lines changed: 58 additions & 35 deletions

File tree

‎dev/docker/ci/ubuntu-mingw.dockerfile‎

Lines changed: 1 addition & 0 deletions

‎dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN apt-get update -qq && \
1717
--autoreconf true \
1818
--nala true \
1919
--compiler mingw \
20+
--gcc true \
2021
--cmake true \
2122
--ninja true \
2223
--task true \

‎dist/legacy/setup-cpp.js‎

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/legacy/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.

‎dist/modern/setup-cpp.mjs‎

Lines changed: 14 additions & 14 deletions
Large diffs are not rendered by default.

‎dist/modern/setup-cpp.mjs.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.

‎patches/apply.mts‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,16 @@ async function applyPatch(patch: string) {
3333
}
3434

3535
console.log(`Applying patch ${patchFilePath} to ${patchedDir}`)
36-
const result = applyPatchToDir({
37-
patchedDir,
38-
patchFilePath,
39-
})
36+
let result = false
37+
try {
38+
result = applyPatchToDir({
39+
patchedDir,
40+
patchFilePath,
41+
})
42+
} catch (err) {
43+
console.error("pnpm patch failed. Maybe your node version is old", err)
44+
result = false
45+
}
4046
// create .patched file in the patchedDir
4147
await fs.writeFile(path.join(patchedDir, ".patched"), patch)
4248
if (!result) {

‎src/llvm/llvm.ts‎

Lines changed: 16 additions & 1 deletion

0 commit comments

Comments
 (0)