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:
- 8679:1471fcf83d61
- Parent:
- 8286:978e541a018f
- Child:
- 9735:d72b98706fba
--- a/tools/toolchains/gcc.py Wed Oct 12 17:25:12 2016 -0500
+++ b/tools/toolchains/gcc.py Tue Oct 11 18:03:28 2016 -0500
@@ -35,6 +35,17 @@
extra_verbose=extra_verbose,
build_profile=build_profile)
+ # Add flags for current size setting
+ default_lib = "std"
+ if hasattr(target, "default_lib"):
+ default_lib = target.default_lib
+ elif hasattr(target, "default_build"): # Legacy
+ default_lib = target.default_build
+
+ if default_lib == "small":
+ self.flags["common"].append("-DMBED_RTOS_SINGLE_THREAD")
+ self.flags["ld"].append("--specs=nano.specs")
+
if target.core == "Cortex-M0+":
cpu = "cortex-m0plus"
elif target.core == "Cortex-M4F":