From df839d5fdb02a4a2470ac0503e0000594c15a417 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 22 May 2023 00:50:44 +0800 Subject: [PATCH] [building] Fix the deque issue for Env['CPPDEFINES'] (#7541) --- tools/building.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/building.py b/tools/building.py index a4fc2c1aab..4bcc86428b 100644 --- a/tools/building.py +++ b/tools/building.py @@ -784,8 +784,8 @@ def DoBuilding(target, objects): CFLAGS = Env.get('CFLAGS', '') + group.get('LOCAL_CFLAGS', '') CCFLAGS = Env.get('CCFLAGS', '') + group.get('LOCAL_CCFLAGS', '') CXXFLAGS = Env.get('CXXFLAGS', '') + group.get('LOCAL_CXXFLAGS', '') - CPPPATH = Env.get('CPPPATH', ['']) + group.get('LOCAL_CPPPATH', ['']) - CPPDEFINES = Env.get('CPPDEFINES', ['']) + group.get('LOCAL_CPPDEFINES', ['']) + CPPPATH = list(Env.get('CPPPATH', [''])) + group.get('LOCAL_CPPPATH', ['']) + CPPDEFINES = list(Env.get('CPPDEFINES', [''])) + group.get('LOCAL_CPPDEFINES', ['']) ASFLAGS = Env.get('ASFLAGS', '') + group.get('LOCAL_ASFLAGS', '') for source in group['src']: