浏览代码

Compatible with gcc-arm-none-eabi toolchain under linux.

weety 5 年之前
父节点
当前提交
80a0a80874
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tools/gcc.py

+ 6 - 1
tools/gcc.py

@@ -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