build/xilinx/vivado: set_property library only supported for vhdl

This commit is contained in:
Florent Kermarrec 2017-02-17 11:42:55 +01:00
parent ac70083453
commit 384f4f428e
1 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@ class XilinxVivadoToolchain:
for filename, language, library in sources: for filename, language, library in sources:
filename_tcl = "{" + filename + "}" filename_tcl = "{" + filename + "}"
tcl.append("add_files " + filename_tcl) tcl.append("add_files " + filename_tcl)
if language == "vhdl":
tcl.append("set_property library {} [get_files {}]" tcl.append("set_property library {} [get_files {}]"
.format(library, filename_tcl)) .format(library, filename_tcl))