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:
- 7614:23701886e451
- Parent:
- 7612:5070b1720955
- Child:
- 7615:69407c9f45ec
--- a/tools/toolchains/gcc.py Wed Aug 10 12:01:00 2016 -0500
+++ b/tools/toolchains/gcc.py Wed Aug 10 15:14:10 2016 -0500
@@ -16,6 +16,7 @@
"""
import re
from os.path import join, basename, splitext, dirname, exists
+from distutils.spawn import find_executable
from tools.toolchains import mbedToolchain, TOOLCHAIN_PATHS
from tools.hooks import hook_tool
@@ -110,7 +111,10 @@
self.ar = join(tool_path, "arm-none-eabi-ar")
self.elf2bin = join(tool_path, "arm-none-eabi-objcopy")
- self.toolchain_path = tool_path
+ if tool_path:
+ self.toolchain_path = main_cc
+ else:
+ self.toolchain_path = find_executable("arm-none-eabi-gcc") or ''
def parse_dependencies(self, dep_path):
dependencies = []