lattice/diamond/tcl: always use / separators, even on windows
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 1 Nov 2019 09:11:12 +0000 (10:11 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 1 Nov 2019 09:11:12 +0000 (10:11 +0100)
litex/build/lattice/diamond.py

index f4f06166b93c669d52c329639f72f4dc0b3c3b15..624495aefce01d6cf3b8919e741dc84b9e224bf9 100644 (file)
@@ -56,7 +56,7 @@ def _build_files(device, sources, vincpaths, build_name):
     for path in vincpaths:
         tcl.append("prj_impl option {include path} {\"" + path + "\"}")
     for filename, language, library in sources:
-        tcl.append("prj_src add \"" + filename + "\" -work " + library)
+        tcl.append("prj_src add \"" + filename.replace("\\", "/") + "\" -work " + library)
     tcl.append("prj_impl option top \"{}\"".format(build_name))
     tcl.append("prj_project save")
     tcl.append("prj_run Synthesis -impl impl -forceOne")