diff options
| author | Bernard Xiong <[email protected]> | 2019-09-11 12:24:01 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-11 12:24:01 +0800 |
| commit | c6b7d14bf4b4e19d839075eabca87e3697441d63 (patch) | |
| tree | cf53fd44d09d4d5643612eccac3464f93195e333 | |
| parent | 2ed84b61b057482d8554a9b181ddb398b5d4ff96 (diff) | |
| parent | dde0596b55e1378c9c00b5fd07a178aadda16e9d (diff) | |
Merge pull request #3060 from hollylee/hollylee-patch-gccroot
Hollylee patch gccroot
| -rw-r--r-- | tools/gcc.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/gcc.py b/tools/gcc.py index 525e11c44b..2e29c8f34b 100644 --- a/tools/gcc.py +++ b/tools/gcc.py @@ -46,6 +46,24 @@ def CheckHeader(rtconfig, filename): if os.path.isfile(fn): return True + # Usually the cross compiling gcc toolchain has directory as: + # + # bin + # lib + # share + # arm-none-eabi + # bin + # include + # lib + # share + prefix = rtconfig.PREFIX + if prefix.endswith('-'): + prefix = prefix[:-1] + + fn = os.path.join(root, prefix, 'include', filename) + if os.path.isfile(fn): + return True + return False def GetNewLibVersion(rtconfig): |
