mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
1 file changed
+4
-1
+4
-1
@@ -32,7 +32,10 @@ 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)
|
||||
else:
|
||||
root_path = os.path.join(exec_path, '..', prefix)
|
||||
|
||||
return root_path
|
||||
|
||||
|
||||
Reference in new issue
Block a user