Skip to content

Commit e237d15

Browse files
authored
Merge pull request #2113 from ohagendorf/gcc_export
[bugfix gcc_arm] build+make <-> export project+make: different results
2 parents 704c042 + bd614a2 commit e237d15

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tools/export/exporters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def progen_get_project_data(self):
108108
return project_data
109109

110110
def progen_gen_file(self, tool_name, project_data):
111-
"""" Generate project using ProGen Project API """
111+
""" Generate project using ProGen Project API """
112112
settings = ProjectSettings()
113113
project = Project(self.program_name, [project_data], settings)
114114
# TODO: Fix this, the inc_dirs are not valid (our scripts copy files), therefore progen

tools/toolchains/gcc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,17 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
285285

286286
if use_nano:
287287
self.ld.append("--specs=nano.specs")
288+
self.flags['ld'].append("--specs=nano.specs")
288289
self.cc += ["-DMBED_RTOS_SINGLE_THREAD"]
289290
self.cppc += ["-DMBED_RTOS_SINGLE_THREAD"]
291+
self.macros.extend(["MBED_RTOS_SINGLE_THREAD"])
290292

291293
if target.name in ["LPC1768", "LPC4088", "LPC4088_DM", "LPC4330", "UBLOX_C027", "LPC2368", "ARM_BEETLE_SOC"]:
292294
self.ld.extend(["-u _printf_float", "-u _scanf_float"])
295+
self.flags['ld'].extend(["-u _printf_float", "-u _scanf_float"])
293296
elif target.name in ["RZ_A1H", "VK_RZ_A1H", "ARCH_MAX", "DISCO_F407VG", "DISCO_F429ZI", "DISCO_F469NI", "NUCLEO_F401RE", "NUCLEO_F410RB", "NUCLEO_F411RE", "NUCLEO_F429ZI", "NUCLEO_F446RE", "NUCLEO_F446ZE", "ELMO_F411RE", "MTS_MDOT_F411RE", "MTS_DRAGONFLY_F411RE", "DISCO_F746NG"]:
294297
self.ld.extend(["-u_printf_float", "-u_scanf_float"])
298+
self.flags['ld'].extend(["-u_printf_float", "-u_scanf_float"])
295299

296300
self.sys_libs.append("nosys")
297301

0 commit comments

Comments
 (0)