修复 工程include path 重排序问题 #6143 report
This commit is contained in:
parent
9673f060f1
commit
e15428c3a8
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue