Ver Fonte

tools: preserve the order of CPPPATH/CPPDEFINES/LIBPATH/LIBS

The order of them are important while the uniqueness has nothing to do
with the compiling.

commit 2c5eea4c21ea66f711974ab6ce1048337f7b9efc in upstream.
Grissiom há 11 anos atrás
pai
commit
84dcd2c313
1 ficheiros alterados com 0 adições e 6 exclusões
  1. 0 6
      tools/building.py

+ 0 - 6
tools/building.py

@@ -435,12 +435,6 @@ def DoBuilding(target, objects):
 
 
                 break
                 break
     else:
     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)
         program = Env.Program(target, objects)
 
 
     EndBuilding(target, program)
     EndBuilding(target, program)