From: Sebastien Bourdeauducq Date: Mon, 19 Oct 2015 01:40:44 +0000 (+0800) Subject: build/vivado: quote paths in Tcl (prevents problems with \ on Windows) X-Git-Tag: 24jan2021_ls180~2099^2~3^2~20 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec80f0fa7e902fc7d5bfef1e76612564d5781927;p=litex.git build/vivado: quote paths in Tcl (prevents problems with \ on Windows) --- diff --git a/migen/build/xilinx/vivado.py b/migen/build/xilinx/vivado.py index da2bd710..76e41d86 100644 --- a/migen/build/xilinx/vivado.py +++ b/migen/build/xilinx/vivado.py @@ -80,8 +80,10 @@ class XilinxVivadoToolchain: def _build_batch(self, platform, sources, build_name): tcl = [] for filename, language, library in sources: - tcl.append("add_files " + filename) - tcl.append("set_property library {} [get_files {}]".format(library, filename)) + filename_tcl = "{" + filename + "}" + tcl.append("add_files " + filename_tcl) + tcl.append("set_property library {} [get_files {}]" + .format(library, filename_tcl)) tcl.append("read_xdc {}.xdc".format(build_name)) tcl.extend(c.format(build_name=build_name) for c in self.pre_synthesis_commands)