From 2c5eea4c21ea66f711974ab6ce1048337f7b9efc Mon Sep 17 00:00:00 2001 From: Grissiom Date: Wed, 8 Oct 2014 12:18:45 +0800 Subject: [PATCH] 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. --- tools/building.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/building.py b/tools/building.py index caa48d96ae..24f661de88 100644 --- a/tools/building.py +++ b/tools/building.py @@ -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)