Skip to content

Commit afe3707

Browse files
committed
fix: improve default parameters for MIPS MTI projects
Now it compiles a simple C hello-world program successfully with an empty template. like: int main() { printf("hello"); return 0; }
1 parent 2afddea commit afe3707

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/EIDEProjectModules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ export class MipsCompileConfigModel extends CompileConfigModel<MipsCompileData>
12611261

12621262
static getDefaultConfig(): MipsCompileData {
12631263
return {
1264-
linkerScriptPath: 'undefined.lds',
1264+
linkerScriptPath: '',
12651265
options: 'null'
12661266
};
12671267
}

src/ToolchainManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ class MTI_GCC implements IToolchian {
23582358
"warnings": "all-warnings",
23592359
"one-elf-section-per-function": false,
23602360
"one-elf-section-per-data": false,
2361-
"C_FLAGS": "",
2361+
"C_FLAGS": "-EL",
23622362
"CXX_FLAGS": ""
23632363
},
23642364
'asm-compiler': {
@@ -2367,7 +2367,7 @@ class MTI_GCC implements IToolchian {
23672367
linker: {
23682368
"output-format": "elf",
23692369
"remove-unused-input-sections": true,
2370-
"LD_FLAGS": "-nostdlib -Wcast-align=strict",
2370+
"LD_FLAGS": "-EL",
23712371
"LIB_FLAGS": "-lm -lgcc"
23722372
}
23732373
};

0 commit comments

Comments
 (0)