Skip to content

Commit

Permalink
Don't try and set up buildenv or external parser if remote (#4332)
Browse files Browse the repository at this point in the history
* Don't try and set up buildenv or external parser if remote
  • Loading branch information
mattgodbolt committed Nov 23, 2022
1 parent f371b10 commit ee54aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/base-compiler.ts
Expand Up @@ -162,13 +162,13 @@ export class BaseCompiler {
this.cmakeBaseEnv = {};

this.buildenvsetup = null;
if (this.compiler.buildenvsetup && this.compiler.buildenvsetup.id) {
if (!this.getRemote() && this.compiler.buildenvsetup && this.compiler.buildenvsetup.id) {
const buildenvsetupclass = getBuildEnvTypeByKey(this.compiler.buildenvsetup.id);
this.buildenvsetup = new buildenvsetupclass(this.compiler, this.env);
}

this.externalparser = null;
if (this.compiler.externalparser && this.compiler.externalparser.id) {
if (!this.getRemote() && this.compiler.externalparser && this.compiler.externalparser.id) {
const externalparserclass = getExternalParserByKey(this.compiler.externalparser.id);
this.externalparser = new externalparserclass(this.compiler, this.env, this.exec);
}
Expand Down

0 comments on commit ee54aa9

Please sign in to comment.