[Tools] Add $ var support in IAR project file.

This commit is contained in:
bernard 2017-10-10 16:52:15 +08:00
parent e7f888e24b
commit 5c6a6e5db8
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ def IARProject(target, script):
if name.text == 'CCIncludePath2' or name.text == 'newCCIncludePaths':
for path in paths:
state = SubElement(option, 'state')
if os.path.isabs(path):
if os.path.isabs(path) or path.startswith('$'):
state.text = path
else:
state.text = '$PROJ_DIR$\\' + path