From f71014b9fb09ae649c1aa58e9575b995eaa9702d Mon Sep 17 00:00:00 2001 From: shuffle2 Date: Mon, 27 Apr 2020 11:14:18 -0700 Subject: [PATCH] diamond: fix include paths include paths given via tcl script need semicolon separators and forward slash as directory separator (even on windows) --- litex/build/lattice/diamond.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index e3f91133..cf44d096 100644 --- a/litex/build/lattice/diamond.py +++ b/litex/build/lattice/diamond.py @@ -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: @@ -201,4 +201,4 @@ class LatticeDiamondToolchain: from_.attr.add("keep") to.attr.add("keep") if (to, from_) not in self.false_paths: - self.false_paths.add((from_, to)) \ No newline at end of file + self.false_paths.add((from_, to)) -- 2.30.2