summaryrefslogtreecommitdiff
path: root/tools/utils.py
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-07-31 23:08:45 -0400
committerMan, Jianting (Meco) <[email protected]>2022-08-01 21:47:04 -0400
commite15428c3a860667b621791f60cf5f85541a7d423 (patch)
treee84d62a8ea85a74a40664b1e6ae8d0c515ad1885 /tools/utils.py
parent9673f060f184fec76216b9647c39b670f2c89c67 (diff)
修复 工程include path 重排序问题 #6143 report
Diffstat (limited to 'tools/utils.py')
-rw-r--r--tools/utils.py8
1 files 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)]