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):
|
if os.path.isfile(fn):
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
def GetNewLibVersion(rtconfig):
|
def GetNewLibVersion(rtconfig):
|
||||||
|
|
Loading…
Reference in New Issue