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:
- 6639:7310555173f0
- Parent:
- 6600:b3b988aaa1cb
- Child:
- 6641:8332bd01adfa
--- a/tools/toolchains/gcc.py Thu Jun 16 12:54:35 2016 -0500
+++ b/tools/toolchains/gcc.py Thu Jun 16 13:34:02 2016 -0500
@@ -165,11 +165,14 @@
dep_path = base + '.d'
return ["-MD", "-MF", dep_path]
+ def get_config_option(self, config_header):
+ return ['-include', config_header]
+
def get_compile_options(self, defines, includes):
opts = ['-D%s' % d for d in defines] + ['@%s' % self.get_inc_file(includes)]
config_header = self.get_config_header()
if config_header is not None:
- opts = opts + ['-include', config_header]
+ opts = opts + self.get_conifg_option(config_header)
return opts
@hook_tool