Skip to content

Commit

Permalink
feat: disable reclient when ELECTRON_DEPOT_TOOLS_WIN_TOOLCHAIN=0 on w…
Browse files Browse the repository at this point in the history
…indows.
  • Loading branch information
reitowo committed Nov 7, 2024
1 parent d5dc574 commit 990993d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/e-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ program

reclient.usingRemote = options.remote;

const winToolchainOverride = process.env.ELECTRON_DEPOT_TOOLS_WIN_TOOLCHAIN;
if ((os.platform() === 'win32' && winToolchainOverride === '0')) {
config.reclient = 'none';
reclient.usingRemote = false;
console.warn(`${color.warn} Build without remote execution when defined ${color.config('ELECTRON_DEPOT_TOOLS_WIN_TOOLCHAIN=0')} in environment variables.`);
}

reclient.downloadAndPrepare(config);

if (process.platform === 'darwin') {
Expand Down

0 comments on commit 990993d

Please sign in to comment.