Skip to content

Commit

Permalink
build/vivado: quote paths in Tcl (prevents problems with \ on Windows)
Browse files Browse the repository at this point in the history
sbourdeauducq committed Oct 19, 2015
1 parent 4acb7bc commit ec80f0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions migen/build/xilinx/vivado.py
Original file line number Diff line number Diff line change
@@ -80,8 +80,10 @@ def __init__(self):
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)

0 comments on commit ec80f0f

Please sign in to comment.