From d6b1417c2d03b95d4d8a5c9dc4bb78176c960ff3 Mon Sep 17 00:00:00 2001
From: Momtchil Momtchev <momtchil@momtchev.com>
Date: Thu, 29 Feb 2024 21:17:48 +0100
Subject: [PATCH] add emscripten to the compiler list

---
 dist/restore/index.js | 2 ++
 src/restore.ts        | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/dist/restore/index.js b/dist/restore/index.js
index e89ef39e..ec658385 100644
--- a/dist/restore/index.js
+++ b/dist/restore/index.js
@@ -59630,6 +59630,8 @@ async function configure(ccacheVariant, platform) {
             await execBash(`ln -s ${ccache} /usr/local/bin/c++`);
             await execBash(`ln -s ${ccache} /usr/local/bin/clang`);
             await execBash(`ln -s ${ccache} /usr/local/bin/clang++`);
+            await execBash(`ln -s ${ccache} /usr/local/bin/emcc`);
+            await execBash(`ln -s ${ccache} /usr/local/bin/em++`);
         }
         core.info("Cccache config:");
         await execBash("ccache -p");
diff --git a/src/restore.ts b/src/restore.ts
index 1dad4c36..c929a31a 100644
--- a/src/restore.ts
+++ b/src/restore.ts
@@ -64,6 +64,8 @@ async function configure(ccacheVariant : string, platform : string) : Promise<vo
       await execBash(`ln -s ${ccache} /usr/local/bin/c++`);
       await execBash(`ln -s ${ccache} /usr/local/bin/clang`);
       await execBash(`ln -s ${ccache} /usr/local/bin/clang++`);
+      await execBash(`ln -s ${ccache} /usr/local/bin/emcc`);
+      await execBash(`ln -s ${ccache} /usr/local/bin/em++`);
     }
     core.info("Cccache config:");
     await execBash("ccache -p");