From 41cca8c4e15f00965d2021a63c57f650cd7c881a Mon Sep 17 00:00:00 2001 From: Gatsby Van Date: Mon, 28 Oct 2024 11:23:14 +0800 Subject: [PATCH] fix(platform/xilinx): set the include dir as a workspace dir to ensure proper indexer functionality --- platform/xilinx/util.tcl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/xilinx/util.tcl b/platform/xilinx/util.tcl index 8cf4fd8..b8bc9c1 100644 --- a/platform/xilinx/util.tcl +++ b/platform/xilinx/util.tcl @@ -166,7 +166,7 @@ proc _update_app_mem_layout {app_name mem_layout} { proc _update_app_build_config {app_name build_type build_config is_vitis} { set build_types {"debug" "release"} if {[lsearch $build_types $build_type] == -1} { - _error "Invalid config type: $build_type" "available types: $build_types" + _error "Invalid config type: $build_type" "available types: $build_types" } set cmd [list] @@ -183,7 +183,8 @@ proc _update_app_build_config {app_name build_type build_config is_vitis} { switch -exact -- $param { "include-path" { foreach path $value { - eval $cmd $app_name include-path "../$path" + set path_str [format "\"\${workspace_loc:/%s/%s}\"" $app_name $path] + eval $cmd $app_name include-path [list $path_str] _info "Append included path: $path for $app_name." } }