소스 검색

Put codes to correct place.

hollylee 6 년 전
부모
커밋
dde0596b55
1개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 9 9
      tools/gcc.py

+ 9 - 9
tools/gcc.py

@@ -37,6 +37,15 @@ def GetGCCRoot(rtconfig):
     else:
         root_path = os.path.join(exec_path, '..', prefix)
 
+    return root_path
+
+def CheckHeader(rtconfig, filename):
+    root = GetGCCRoot(rtconfig)
+
+    fn = os.path.join(root, 'include', filename)
+    if os.path.isfile(fn):
+        return True
+
     # Usually the cross compiling gcc toolchain has directory as:
     #
     # bin
@@ -55,15 +64,6 @@ def GetGCCRoot(rtconfig):
     if os.path.isfile(fn):
         return True
     
-    return root_path
-
-def CheckHeader(rtconfig, filename):
-    root = GetGCCRoot(rtconfig)
-
-    fn = os.path.join(root, 'include', filename)
-    if os.path.isfile(fn):
-        return True
-
     return False
 
 def GetNewLibVersion(rtconfig):