Skip to content

Commit ee187bd

Browse files
authored
fix prev-commit
1 parent bb5254a commit ee187bd

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/ToolchainManager.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface IToolchian {
102102
* get gcc c/c++ compiler path for cpptools
103103
* @param type c or c++ compiler
104104
*/
105-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined;
105+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined;
106106

107107
/**
108108
* get compiler internal defines (for static check)
@@ -473,7 +473,7 @@ class KeilC51 implements IToolchian {
473473
return new KeilC51();
474474
}
475475

476-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
476+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
477477
//const gcc = File.fromArray([this.getToolchainDir().path, 'BIN', `C51${platform.exeSuffix()}`]);
478478
//return gcc.path;
479479
return undefined;
@@ -663,7 +663,7 @@ class SDCC implements IToolchian {
663663
}
664664
}
665665

666-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
666+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
667667
//const gcc = File.fromArray([this.getToolchainDir().path, 'bin', `sdcc${platform.exeSuffix()}`]);
668668
//return gcc.path;
669669
return undefined;
@@ -910,7 +910,7 @@ class SDCC implements IToolchian {
910910
// return new SDCC();
911911
// }
912912

913-
// getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
913+
// getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
914914
// //const gcc = File.fromArray([this.getToolchainDir().path, 'bin', `sdcc${platform.exeSuffix()}`]);
915915
// //return gcc.path;
916916
// return undefined;
@@ -1118,7 +1118,7 @@ class COSMIC_STM8 implements IToolchian {
11181118
return new COSMIC_STM8();
11191119
}
11201120

1121-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
1121+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
11221122
// not support
11231123
return undefined;
11241124
}
@@ -1450,7 +1450,7 @@ class AC5 implements IToolchian {
14501450
return new AC5();
14511451
}
14521452

1453-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
1453+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
14541454
//const armccFile = File.fromArray([this.getToolchainDir().path, 'bin', `armcc${platform.exeSuffix()}`]);
14551455
//return armccFile.path;
14561456
return undefined;
@@ -1682,7 +1682,7 @@ class AC6 implements IToolchian {
16821682
return new AC6();
16831683
}
16841684

1685-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
1685+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
16861686
const armclang = File.fromArray([this.getToolchainDir().path, 'bin', `armclang${platform.exeSuffix()}`]);
16871687
return armclang.path;
16881688
}
@@ -1912,7 +1912,7 @@ class GCC implements IToolchian {
19121912
return new GCC();
19131913
}
19141914

1915-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
1915+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
19161916
const gcc = File.from(
19171917
this.getToolchainDir().path, 'bin',
19181918
this.getToolPrefix() + `${type == 'c++' ? 'g++' : 'gcc'}${platform.exeSuffix()}`);
@@ -2137,7 +2137,7 @@ class IARARM implements IToolchian {
21372137
return new IARARM();
21382138
}
21392139

2140-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
2140+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
21412141
return undefined;
21422142
}
21432143

@@ -2275,7 +2275,7 @@ class IARSTM8 implements IToolchian {
22752275
return new IARSTM8();
22762276
}
22772277

2278-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
2278+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
22792279
//const gcc = File.fromArray([this.getToolchainDir().path, 'stm8', 'bin', `iccstm8${platform.exeSuffix()}`]);
22802280
//return gcc.path;
22812281
return undefined;
@@ -2490,7 +2490,7 @@ class MTI_GCC implements IToolchian {
24902490
}
24912491
}
24922492

2493-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
2493+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
24942494
const gcc = File.from(
24952495
this.getToolchainDir().path, 'bin',
24962496
this.getToolPrefix() + `${type == 'c++' ? 'g++' : 'gcc'}${platform.exeSuffix()}`);
@@ -2765,7 +2765,7 @@ class RISCV_GCC implements IToolchian {
27652765
}
27662766
}
27672767

2768-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
2768+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
27692769
const gcc = File.from(
27702770
this.getToolchainDir().path, 'bin',
27712771
this.getToolPrefix() + `${type == 'c++' ? 'g++' : 'gcc'}${platform.exeSuffix()}`);
@@ -2984,7 +2984,7 @@ class AnyGcc implements IToolchian {
29842984
return new AnyGcc();
29852985
}
29862986

2987-
getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined): string | undefined {
2987+
getGccFamilyCompilerPathForCpptools(type?: 'c' | 'c++'): string | undefined {
29882988
const gcc = File.from(
29892989
this.getToolchainDir().path, 'bin',
29902990
this.getToolPrefix() + `${type == 'c++' ? 'g++' : 'gcc'}${platform.exeSuffix()}`);

0 commit comments

Comments
 (0)