@@ -102,7 +102,7 @@ export interface IToolchian {
102
102
* get gcc c/c++ compiler path for cpptools
103
103
* @param type c or c++ compiler
104
104
*/
105
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined ;
105
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined ;
106
106
107
107
/**
108
108
* get compiler internal defines (for static check)
@@ -473,7 +473,7 @@ class KeilC51 implements IToolchian {
473
473
return new KeilC51 ( ) ;
474
474
}
475
475
476
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
476
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
477
477
//const gcc = File.fromArray([this.getToolchainDir().path, 'BIN', `C51${platform.exeSuffix()}`]);
478
478
//return gcc.path;
479
479
return undefined ;
@@ -663,7 +663,7 @@ class SDCC implements IToolchian {
663
663
}
664
664
}
665
665
666
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
666
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
667
667
//const gcc = File.fromArray([this.getToolchainDir().path, 'bin', `sdcc${platform.exeSuffix()}`]);
668
668
//return gcc.path;
669
669
return undefined ;
@@ -910,7 +910,7 @@ class SDCC implements IToolchian {
910
910
// return new SDCC();
911
911
// }
912
912
913
- // getGccFamilyCompilerPathForCpptools(type: 'c' | 'c++' | undefined ): string | undefined {
913
+ // getGccFamilyCompilerPathForCpptools(type? : 'c' | 'c++'): string | undefined {
914
914
// //const gcc = File.fromArray([this.getToolchainDir().path, 'bin', `sdcc${platform.exeSuffix()}`]);
915
915
// //return gcc.path;
916
916
// return undefined;
@@ -1118,7 +1118,7 @@ class COSMIC_STM8 implements IToolchian {
1118
1118
return new COSMIC_STM8 ( ) ;
1119
1119
}
1120
1120
1121
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
1121
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
1122
1122
// not support
1123
1123
return undefined ;
1124
1124
}
@@ -1450,7 +1450,7 @@ class AC5 implements IToolchian {
1450
1450
return new AC5 ( ) ;
1451
1451
}
1452
1452
1453
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
1453
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
1454
1454
//const armccFile = File.fromArray([this.getToolchainDir().path, 'bin', `armcc${platform.exeSuffix()}`]);
1455
1455
//return armccFile.path;
1456
1456
return undefined ;
@@ -1682,7 +1682,7 @@ class AC6 implements IToolchian {
1682
1682
return new AC6 ( ) ;
1683
1683
}
1684
1684
1685
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
1685
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
1686
1686
const armclang = File . fromArray ( [ this . getToolchainDir ( ) . path , 'bin' , `armclang${ platform . exeSuffix ( ) } ` ] ) ;
1687
1687
return armclang . path ;
1688
1688
}
@@ -1912,7 +1912,7 @@ class GCC implements IToolchian {
1912
1912
return new GCC ( ) ;
1913
1913
}
1914
1914
1915
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
1915
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
1916
1916
const gcc = File . from (
1917
1917
this . getToolchainDir ( ) . path , 'bin' ,
1918
1918
this . getToolPrefix ( ) + `${ type == 'c++' ? 'g++' : 'gcc' } ${ platform . exeSuffix ( ) } ` ) ;
@@ -2137,7 +2137,7 @@ class IARARM implements IToolchian {
2137
2137
return new IARARM ( ) ;
2138
2138
}
2139
2139
2140
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
2140
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
2141
2141
return undefined ;
2142
2142
}
2143
2143
@@ -2275,7 +2275,7 @@ class IARSTM8 implements IToolchian {
2275
2275
return new IARSTM8 ( ) ;
2276
2276
}
2277
2277
2278
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
2278
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
2279
2279
//const gcc = File.fromArray([this.getToolchainDir().path, 'stm8', 'bin', `iccstm8${platform.exeSuffix()}`]);
2280
2280
//return gcc.path;
2281
2281
return undefined ;
@@ -2490,7 +2490,7 @@ class MTI_GCC implements IToolchian {
2490
2490
}
2491
2491
}
2492
2492
2493
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
2493
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
2494
2494
const gcc = File . from (
2495
2495
this . getToolchainDir ( ) . path , 'bin' ,
2496
2496
this . getToolPrefix ( ) + `${ type == 'c++' ? 'g++' : 'gcc' } ${ platform . exeSuffix ( ) } ` ) ;
@@ -2765,7 +2765,7 @@ class RISCV_GCC implements IToolchian {
2765
2765
}
2766
2766
}
2767
2767
2768
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
2768
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
2769
2769
const gcc = File . from (
2770
2770
this . getToolchainDir ( ) . path , 'bin' ,
2771
2771
this . getToolPrefix ( ) + `${ type == 'c++' ? 'g++' : 'gcc' } ${ platform . exeSuffix ( ) } ` ) ;
@@ -2984,7 +2984,7 @@ class AnyGcc implements IToolchian {
2984
2984
return new AnyGcc ( ) ;
2985
2985
}
2986
2986
2987
- getGccFamilyCompilerPathForCpptools ( type : 'c' | 'c++' | undefined ) : string | undefined {
2987
+ getGccFamilyCompilerPathForCpptools ( type ? : 'c' | 'c++' ) : string | undefined {
2988
2988
const gcc = File . from (
2989
2989
this . getToolchainDir ( ) . path , 'bin' ,
2990
2990
this . getToolPrefix ( ) + `${ type == 'c++' ? 'g++' : 'gcc' } ${ platform . exeSuffix ( ) } ` ) ;
0 commit comments