diamond: fix include paths

include paths given via tcl script need semicolon separators and forward slash as directory separator (even on windows)
This commit is contained in:
shuffle2 2020-04-27 11:14:18 -07:00 committed by GitHub
parent 4dece4ce24
commit f71014b9fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -68,8 +68,8 @@ def _build_tcl(device, sources, vincpaths, build_name):
]))
# Add include paths
for path in vincpaths:
tcl.append("prj_impl option {include path} {\"" + path + "\"}")
vincpath = ';'.join(map(lambda x: x.replace('\\', '/'), vincpaths))
tcl.append("prj_impl option {include path} {\"" + vincpath + "\"}")
# Add sources
for filename, language, library in sources: