4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 02:23:32 +08:00

Merge pull request #349 from grissiom/fix-tools

tools: preserve the order of CPPPATH/CPPDEFINES/LIBPATH/LIBS
This commit is contained in:
Bernard Xiong 2014-10-08 13:32:08 +08:00
commit 08bcf51bb4

View File

@ -437,12 +437,6 @@ def DoBuilding(target, objects):
break
else:
# merge the repeated items in the Env
if Env.has_key('CPPPATH') : Env['CPPPATH'] = list(set(Env['CPPPATH']))
if Env.has_key('CPPDEFINES'): Env['CPPDEFINES'] = list(set(Env['CPPDEFINES']))
if Env.has_key('LIBPATH') : Env['LIBPATH'] = list(set(Env['LIBPATH']))
if Env.has_key('LIBS') : Env['LIBS'] = list(set(Env['LIBS']))
program = Env.Program(target, objects)
EndBuilding(target, program)