fixed scons building error when use LIB.

This commit is contained in:
aozima 2015-05-22 16:49:07 +08:00
parent 1fa5711712
commit 6230ff81cc
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ def MDK4AddGroupForFN(ProjectFiles, parent, name, filename, project_path):
obj_name = name.replace('.s', '.o')
elif name.find('.S') != -1:
obj_name = name.replace('.s', '.o')
else:
obj_name = name
if ProjectFiles.count(obj_name):
name = basename + '_' + name
@ -272,6 +274,8 @@ def MDK5AddGroup(ProjectFiles, parent, name, files, project_path):
obj_name = name.replace('.s', '.o')
elif name.find('.S') != -1:
obj_name = name.replace('.s', '.o')
else:
obj_name = name
if ProjectFiles.count(obj_name):
name = basename + '_' + name