Merge pull request #3016 from weety/dev

Dev
This commit is contained in:
Bernard Xiong authored and GitHub committed 2019-08-29 14:04:48 +08:00
commit 779d86f1da
1 file changed
+4 -1
+4 -1
View File
@@ -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