Skip to content

Commit 6dabfe8

Browse files
committed
Vivado_non_prj.inc.tcl [BUGFIX]: check if PLATFORM_TAGS exist
1 parent 5f8d10d commit 6dabfe8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build/Vivado_non_prj.inc.tcl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,12 @@ proc nb_sanitize_vars {synth_flags hierarchy} {
655655

656656
set SYNTH_FLAGS(TOOL) "vivado"
657657

658-
global NB_PLATFORM_TAGS
659-
global PLATFORM_TAGS
660-
set NB_PLATFORM_TAGS "xilinx $PLATFORM_TAGS"
658+
global NB_PLATFORM_TAGS env
659+
if {[info exists env(PLATFORM_TAGS)]} {
660+
set NB_PLATFORM_TAGS "$env(PLATFORM_TAGS)"
661+
} else {
662+
set NB_PLATFORM_TAGS "xilinx"
663+
}
661664

662665
if {[info commands version] != ""} {
663666
set SYNTH_FLAGS(TOOL_VERSION) [version -short]

0 commit comments

Comments
 (0)