mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 02:51:33 +08:00
Merge pull request #3060 from hollylee/hollylee-patch-gccroot
Hollylee patch gccroot
This commit is contained in:
commit
c6b7d14bf4
18
tools/gcc.py
18
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user