Skip to content

Commit d51ae12

Browse files
mistersandmanmichelleangela
authored andcommitted
Resolve compiler path before verification (fixes issue #4141) (#4142)
1 parent a17cb42 commit d51ae12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ export class CppProperties {
403403
configuration.intelliSenseMode === "${default}") {
404404
return true;
405405
}
406-
let compilerPathAndArgs: util.CompilerPathAndArgs = util.extractCompilerPathAndArgs(configuration.compilerPath);
406+
let resolvedCompilerPath: string = this.resolvePath(configuration.compilerPath, true);
407+
let compilerPathAndArgs: util.CompilerPathAndArgs = util.extractCompilerPathAndArgs(resolvedCompilerPath);
407408
return (compilerPathAndArgs.compilerName === "cl.exe") === (configuration.intelliSenseMode === "msvc-x64" || configuration.intelliSenseMode === "msvc-x86");
408409
}
409410

0 commit comments

Comments
 (0)