Skip to content

Commit

Permalink
Merge pull request #217 from github0null/dev
Browse files Browse the repository at this point in the history
v3.11.1 patch
  • Loading branch information
github0null authored Feb 26, 2023
2 parents ca52352 + 69fddf8 commit 2760834
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable version changes will be recorded in this file.

***

### [v3.11.0] revision
### [v3.11.1] update

**New**:
- `Object Order For Linker`: Allow specify an order for any obj files before the builder start to link your program.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"homepage": "https://em-ide.com",
"license": "MIT",
"description": "A mcu development environment for 8051/AVR/STM8/Cortex-M/RISC-V",
"version": "3.11.0",
"version": "3.11.1",
"preview": false,
"engines": {
"vscode": "^1.67.0"
Expand Down
12 changes: 8 additions & 4 deletions src/EIDEProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class VirtualSource implements SourceProvider {

this.traverse((folderInfo) => {
result.push({
name: folderInfo.path.replace(`${VirtualSource.rootName}/`, ''),
name: folderInfo.path,
disabled: this.project.isExcluded(folderInfo.path) || undefined,
files: folderInfo.folder.files.map((vFile) => {
const file = new File(this.project.ToAbsolutePath(vFile.path));
Expand Down Expand Up @@ -2611,7 +2611,7 @@ class EIDEProject extends AbstractProject {
}

private getExtraCompilerOptionsBySrcFile(srcPath: string, vPath?: string): string[] | undefined {
return this.getExtraArgsForSource(srcPath, vPath, this.getSourceExtraArgsCfg());
return this.getExtraArgsForSource(srcPath, vPath, this.getSourceExtraArgsCfg());
}

//////////////////////////////// source refs ///////////////////////////////////
Expand Down Expand Up @@ -2830,12 +2830,16 @@ class EIDEProject extends AbstractProject {

// is virtual source
else {
fileGroups.push(_group);
fileGroups.push({
name: _group.name.replace(`${VirtualSource.rootName}/`, ''), // remove '<virtual_root>/' header for keil
files: _group.files,
disabled: _group.disabled
});
}
});

if (halFiles.length > 0) {
const index = fileGroups.findIndex((group) => { return group.name === 'HAL'; });
const index = fileGroups.findIndex((group) => group.name === 'HAL');
if (index === -1) {
fileGroups.push(<FileGroup>{
name: 'HAL',
Expand Down
2 changes: 1 addition & 1 deletion src/EIDETypeDefine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface FileItem {
}

export interface FileGroup {
name: string; // dir name if it's system folder, else it's a virtual path
name: string; // dir name if it's system folder, else it's a virtual path (with '<virtual_root>/' header)
files: FileItem[];
disabled?: boolean; // for mdk group info
}
Expand Down

0 comments on commit 2760834

Please sign in to comment.