MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / searchLib

Function searchLib

tools/targets/iar.py:97–105  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

95 lib_suffix = ['.a', '.o', '']
96
97 def searchLib(group):
98 for path_item in group['LIBPATH']:
99 for prefix_item in lib_prefix:
100 for suffix_item in lib_suffix:
101 lib_full_path = os.path.join(path_item, prefix_item + item + suffix_item)
102 if os.path.isfile(lib_full_path):
103 return lib_full_path
104 else:
105 return ''
106
107 # add group
108 for group in script:

Callers 1

IARProjectFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected