File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -569,17 +569,21 @@ function toArray(obj: any): any[] {
569569
570570function detectProjectType ( toolChain : any ) : EclipseProjectType | undefined {
571571
572- const toolName = toolChain . $ [ 'name' ] ;
572+ const toolId = toolChain . $ [ 'id' ] ;
573+ const toolName = toolChain . $ [ 'name' ] || toolId ;
573574
574- if ( / \b A R M \b / i. test ( toolName ) ) {
575+ // <toolChain id="ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.debug.1201710416" name="ARM Cross GCC"
576+ if ( / \b A R M \b / . test ( toolName ) || / g n u a r m e c l i p s e / . test ( toolId ) ) {
575577 return 'arm' ;
576578 }
577579
578- if ( / \b ( R I S C V | R I S C - V ) \b / i. test ( toolName ) ) {
580+ // <toolChain id="ilg.gnumcueclipse.managedbuild.cross.riscv.toolchain.elf.release.231146001" name="RISC-V Cross GCC…
581+ if ( / \b ( R I S C V | R I S C - V ) \b / . test ( toolName ) || / \. r i s c v \. / . test ( toolId ) ) {
579582 return 'riscv' ;
580583 }
581584
582- if ( / \b S D C C \b / i. test ( toolName ) ) {
585+ // <toolChain errorParsers="" id="cdt.managedbuild.toolchain.sdcc.exe.release.1956586716" name="SDCC Tool Chain"
586+ if ( / \b S D C C \b / . test ( toolName ) || / \. s d c c \. / . test ( toolId ) ) {
583587 return 'sdcc' ;
584588 }
585589}
You can’t perform that action at this time.
0 commit comments