File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def generate(self):
48
48
'source_files' : source_files ,
49
49
'include_paths' : self .resources .inc_dirs ,
50
50
'scatter_file' : self .resources .linker_script ,
51
+ 'library_paths' : self .resources .lib_dirs ,
51
52
'object_files' : self .resources .objects ,
52
53
'libraries' : libraries ,
53
54
'symbols' : self .toolchain .get_symbols ()
Original file line number Diff line number Diff line change 23
23
<Option name =" Library" value =" Not use C Library" />
24
24
<Option name =" nostartfiles" value =" 0" />
25
25
<Option name =" UserEditLinker" value =" --specs=nano.specs; -u _printf_float; -u _scanf_float; {% for file in object_files %}
26
- ${project.path}/{{file}}; {% endfor %} {% for lib in libraries %} -l{{lib}}; {% endfor %} -lstdc++; -lsupc++; -lm; -lc; -lgcc; -lnosys;" />
27
- <LinkedLibraries />
26
+ ${project.path}/{{file}}; {% endfor %} {% for p in library_paths %}-L{{p}}; {% endfor %}" />
27
+ <LinkedLibraries >
28
+ {% for lib in libraries %}
29
+ <Libset dir =" " libs =" {{lib}}" />
30
+ {% endfor %}
31
+ <Libset dir =" " libs =" stdc++" />
32
+ <Libset dir =" " libs =" supc++" />
33
+ <Libset dir =" " libs =" m" />
34
+ <Libset dir =" " libs =" gcc" />
35
+ <Libset dir =" " libs =" c" />
36
+ <Libset dir =" " libs =" nosys" />
37
+ </LinkedLibraries >
28
38
<MemoryAreas debugInFlashNotRAM =" 1" >
29
39
<Memory name =" IROM1" type =" ReadOnly" size =" 0x00020000" startValue =" 0x00000000" />
30
40
<Memory name =" IRAM1" type =" ReadWrite" size =" 0x00001000" startValue =" 0x1FFFF000" />
You can’t perform that action at this time.
0 commit comments