mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 13:03:31 +08:00
Compatible with gcc-arm-none-eabi toolchain under linux.
This commit is contained in:
parent
9a6e47bcc6
commit
80a0a80874
@ -32,7 +32,12 @@ def GetGCCRoot(rtconfig):
|
||||
if prefix.endswith('-'):
|
||||
prefix = prefix[:-1]
|
||||
|
||||
root_path = os.path.join(exec_path, '..', prefix)
|
||||
if exec_path == '/usr/bin':
|
||||
root_path = os.path.join('/usr/lib', prefix)
|
||||
print(root_path)
|
||||
else:
|
||||
root_path = os.path.join(exec_path, '..', prefix)
|
||||
print(root_path)
|
||||
|
||||
return root_path
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user