修复 工程include path 重排序问题 #6143 report

This commit is contained in:
Meco Man 2022-07-31 23:08:45 -04:00 committed by Man, Jianting (Meco)
parent 9673f060f1
commit e15428c3a8
1 changed files with 5 additions and 3 deletions

View File

@ -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)]