Skip to content

Commit 47b1f63

Browse files
committed
some perfection for mti_gcc toolchain
1 parent a93d4f9 commit 47b1f63

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

src/EIDEProjectExplorer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,8 @@ class ProjectDataProvider implements vscode.TreeDataProvider<ProjTreeItem>, vsco
17511751
case 'GCC':
17521752
case 'RISCV_GCC':
17531753
case 'ANY_GCC':
1754+
case 'MIPS_GCC':
1755+
case 'MTI_GCC':
17541756
elfpath = prj.getExecutablePathWithoutSuffix() + '.elf';
17551757
elftool = [toolchain.getToolchainDir().path, 'bin', `${toolchainPrefix}nm${exeSuffix()}`].join(File.sep);
17561758
elfcmds = sortType == 'size' ? ['-l', '-S', '--size-sort', elfpath] : ['-ln', '-S', elfpath];

src/OperationExplorer.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -721,13 +721,6 @@ export class OperationExplorer {
721721
}
722722
]
723723
},
724-
{
725-
label: 'MIPS MTI GCC Compiler',
726-
type: 'MTI_GCC',
727-
description: this.getStatusTxt(toolchainManager.isToolchainPathReady('MTI_GCC'))
728-
+ ` Loc: ${toolchainManager.getToolchainExecutableFolder('MTI_GCC')?.path}`,
729-
detail: view_str$operation$setToolchainInstallDir.replace('${name}', 'MTI_GCC'),
730-
},
731724
/* {
732725
label: 'SDCC With GNU Patch For STM8 (Only for stm8)',
733726
type: 'GNU_SDCC_STM8',
@@ -801,6 +794,13 @@ export class OperationExplorer {
801794
}
802795
]
803796
},
797+
{
798+
label: 'MIPS MTI GCC Compiler',
799+
type: 'MTI_GCC',
800+
description: this.getStatusTxt(toolchainManager.isToolchainPathReady('MTI_GCC'))
801+
+ ` Loc: ${toolchainManager.getToolchainExecutableFolder('MTI_GCC')?.path}`,
802+
detail: view_str$operation$setToolchainInstallDir.replace('${name}', 'MTI_GCC'),
803+
},
804804
{
805805
label: `Universal GCC Toolchain (${toolchainManager.getToolchainPrefix('ANY_GCC')}gcc)`,
806806
type: 'ANY_GCC',

src/SettingManager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ export class SettingManager {
646646
return this.getRiscvToolPrefix();
647647
case 'ANY_GCC':
648648
return this.getAnyGccToolPrefix();
649+
case 'MIPS_GCC':
650+
case 'MTI_GCC':
651+
return this.getMipsToolPrefix();
649652
default:
650653
return undefined;
651654
}

src/ToolchainManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { ICompileOptions, ArmBaseBuilderConfigData } from "./EIDEProjectModules"
4242
export type ToolchainName =
4343
'SDCC' | 'Keil_C51' | 'IAR_STM8' | 'GNU_SDCC_STM8' | 'COSMIC_STM8' |
4444
'AC5' | 'AC6' | 'GCC' | 'IAR_ARM' |
45-
'RISCV_GCC' | 'ANY_GCC' | 'MTI_GCC' | 'None';
45+
'RISCV_GCC' | 'ANY_GCC' | 'MIPS_GCC' | 'MTI_GCC' | 'None';
4646

4747
export interface IProjectInfo {
4848

0 commit comments

Comments
 (0)