Quellcode durchsuchen

Merge pull request #3016 from weety/dev

Dev
Bernard Xiong vor 5 Jahren
Ursprung
Commit
779d86f1da
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      tools/gcc.py

+ 4 - 1
tools/gcc.py

@@ -32,7 +32,10 @@ def GetGCCRoot(rtconfig):
     if prefix.endswith('-'):
     if prefix.endswith('-'):
         prefix = prefix[:-1]
         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
     return root_path