Skip to content

Commit 60575f5

Browse files
committed
fix cpptools.ts
1 parent 5f3ef59 commit 60575f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpptools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ interface TargetDefaults {
6565
}
6666

6767
function parseCppStandard(std: string, canUseGnu: boolean, canUseCxx23: boolean): StandardVersion {
68-
// No need to parse language standard for CppTools API v6 and above
6968
const isGnu = canUseGnu && std.startsWith('gnu');
7069
if (std.endsWith('++23') || std.endsWith('++2b') || std.endsWith('++latest')) {
7170
if (canUseCxx23) {
@@ -161,6 +160,7 @@ export function parseCompileFlags(cptVersion: cpptools.Version, args: string[],
161160
const extractStdFlag = (cptVersion < cpptools.Version.v6);
162161
const iter = args[Symbol.iterator]();
163162
const extraDefinitions: string[] = [];
163+
// No need to parse language standard for CppTools API v6 and above
164164
let standard: StandardVersion;
165165
let targetArch: Architecture;
166166
while (1) {

0 commit comments

Comments
 (0)