Skip to content

Commit

Permalink
feat: issue #168 added '-Wl,--print-memory-usage' as a default linker…
Browse files Browse the repository at this point in the history
… flag for new projects.
  • Loading branch information
jortbmd committed Jan 8, 2024
1 parent a6c7574 commit c966235
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/MakeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export class ExtensionConfiguration implements ExtensionConfigurationInterface {
public targetMCU = '';
public language = 'C' as STM32Languages;
public optimization = 'Og';
public linkerFlags: string[] = [];
public linkerFlags: string[] = [
'-Wl,--print-memory-usage'
];
// be aware that more flags are present in the Makefile. However these seem to be mandatory
public cFlags: string[] = [
'-Wall', '-fdata-sections', '-ffunction-sections',
Expand Down

0 comments on commit c966235

Please sign in to comment.