Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: tools/toolchains/gcc.py
- Revision:
- 6386:292843bb388f
- Parent:
- 6359:00ee81ac1c20
- Child:
- 6393:b4fa50caddef
--- a/tools/toolchains/gcc.py Sun Jun 12 00:20:48 2016 +0100
+++ b/tools/toolchains/gcc.py Sat Jun 11 22:05:54 2016 +0100
@@ -252,8 +252,22 @@
GCC.__init__(self, target, options, notify, macros, silent, GCC_ARM_PATH, extra_verbose=extra_verbose)
# Use latest gcc nanolib
- if "thread-safe" not in self.options:
+ if "big-build" in self.options:
+ use_nano = False
+ elif "small-build" in self.options:
+ use_nano = True
+ elif target.default_build == "standard":
+ use_nano = False
+ elif target.default_build == "small":
+ use_nano = True
+ else:
+ use_nano = False
+
+ if use_nano:
self.ld.append("--specs=nano.specs")
+ self.cc += ["-DMBED_RTOS_SINGLE_THREAD"]
+ self.cppc += ["-DMBED_RTOS_SINGLE_THREAD"]
+
if target.name in ["LPC1768", "LPC4088", "LPC4088_DM", "LPC4330", "UBLOX_C027", "LPC2368"]:
self.ld.extend(["-u _printf_float", "-u _scanf_float"])
elif target.name in ["RZ_A1H", "VK_RZ_A1H", "ARCH_MAX", "DISCO_F407VG", "DISCO_F429ZI", "DISCO_F469NI", "NUCLEO_F401RE", "NUCLEO_F410RB", "NUCLEO_F411RE", "NUCLEO_F446RE", "ELMO_F411RE", "MTS_MDOT_F411RE", "MTS_DRAGONFLY_F411RE", "DISCO_F746NG"]: