From e15428c3a860667b621791f60cf5f85541a7d423 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 31 Jul 2022 23:08:45 -0400 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=B7=A5=E7=A8=8Binclude?= =?UTF-8?q?=20path=20=E9=87=8D=E6=8E=92=E5=BA=8F=E9=97=AE=E9=A2=98=20#6143?= =?UTF-8?q?=20report?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/utils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/utils.py b/tools/utils.py index 67ce098ccd..1007dfab65 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -216,7 +216,11 @@ def ProjectInfo(env): CPPPATH[i] = os.path.abspath(CPPPATH[i]) # remove repeat path - paths = [i for i in set(CPPPATH)] + paths = [] + for p in CPPPATH: + if p not in paths: + paths.append(p) + CPPPATH = [] for path in paths: if PrefixPath(RTT_ROOT, path): @@ -228,8 +232,6 @@ def ProjectInfo(env): else: CPPPATH += ['"%s",' % path.replace('\\', '/')] - CPPPATH.sort() - # process CPPDEFINES if len(CPPDEFINES): CPPDEFINES = [i for i in set(CPPDEFINES)]