fix(platform/xilinx): set the include dir as a workspace dir to ensure proper indexer functionality

This commit is contained in:
Gatsby Van
2024-10-28 11:23:14 +08:00
parent c467f2fa0b
commit 41cca8c4e1
+3 -2
View File
@@ -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} { proc _update_app_build_config {app_name build_type build_config is_vitis} {
set build_types {"debug" "release"} set build_types {"debug" "release"}
if {[lsearch $build_types $build_type] == -1} { 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] set cmd [list]
@@ -183,7 +183,8 @@ proc _update_app_build_config {app_name build_type build_config is_vitis} {
switch -exact -- $param { switch -exact -- $param {
"include-path" { "include-path" {
foreach path $value { 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." _info "Append included path: $path for $app_name."
} }
} }